From 29fd5fa56cad2db56881877b53b3f213844e51e4 Mon Sep 17 00:00:00 2001 From: alimy Date: Sun, 26 Jun 2022 18:57:44 +0800 Subject: [PATCH] optimize #141 fixed tweet in correct visibility status after visible action --- internal/service/post.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }