diff --git a/internal/service/post.go b/internal/service/post.go index 5bb35832..4e2f6fec 100644 --- a/internal/service/post.go +++ b/internal/service/post.go @@ -247,6 +247,10 @@ func VisiblePost(user *model.User, postId int64, visibility model.PostVisibleT) return errcode.VisblePostFailed } + // 推送Search + post.Visibility = visibility + PushPostToSearch(post) + return nil }