Skip to content

Commit

Permalink
Merge pull request #144 from alimy/pr-search-visible
Browse files Browse the repository at this point in the history
fixed tweet in correct visibility status after visible tweet
  • Loading branch information
alimy authored Jun 26, 2022
2 parents 9012c86 + 29fd5fa commit b86acf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b86acf3

Please sign in to comment.