fix: filte reported in for search

This commit is contained in:
2022-03-27 14:38:22 +08:00
parent caec3e1930
commit 8ffbd6fa31

View File

@@ -273,7 +273,8 @@ impl Post {
let mut query = base_query!(posts)
.select(posts::id)
.distinct()
.left_join(comments::table);
.left_join(comments::table)
.filter(posts::is_reported.eq(false));
// 先用搜索+缓存性能有问题了再真的做tag表
query = match search_mode {
0 => {