There was an error while loading. Please reload this page.
1 parent 01e94e4 commit 56c82adCopy full SHA for 56c82ad
1 file changed
src/components/common/post-item.vue
@@ -29,7 +29,7 @@
29
<a
30
:href="post.user_id ? author_url(post.user_id) : null"
31
class="u-name"
32
- v-text="post.user_nickname"
+ v-text="nickname"
33
target="_blank"
34
></a>
35
</div>
@@ -65,6 +65,9 @@ export default {
65
client() {
66
return this.$store.state.client;
67
},
68
+ nickname() {
69
+ return this.post?.user?.display_name || this.post?.user_nickname || "匿名";
70
+ }
71
72
data() {
73
return {
0 commit comments