allow get popular private post

This commit is contained in:
2022-10-20 22:32:49 +08:00
parent b70b6b2e7f
commit 553b46b504

View File

@@ -262,7 +262,7 @@ impl Ugc for Post {
self.is_reported
}
fn get_is_private(&self) -> bool {
!self.allow_search
!(self.allow_search || self.n_attentions > 20)
}
fn get_is_deleted(&self) -> bool {
self.is_deleted