diff --git a/internal/model/post.go b/internal/model/post.go index 39bc5844..3f08f7a1 100644 --- a/internal/model/post.go +++ b/internal/model/post.go @@ -67,6 +67,7 @@ func (p *Post) Format() *PostFormated { CommentCount: p.CommentCount, CollectionCount: p.CollectionCount, UpvoteCount: p.UpvoteCount, + Visibility: p.Visibility, IsTop: p.IsTop, IsEssence: p.IsEssence, IsLock: p.IsLock, diff --git a/web/src/components/post-detail.vue b/web/src/components/post-detail.vue index af283e9c..f937b10c 100644 --- a/web/src/components/post-detail.vue +++ b/web/src/components/post-detail.vue @@ -16,6 +16,33 @@ {{ post.user.nickname }} @{{ post.user.username }} + + 置顶 + + + 私密 + + + 好友可见 +