mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FIX: in:bookmarks searching deleted bookmarks
This commit is contained in:
parent
24d8c423df
commit
853553f329
1 changed files with 2 additions and 1 deletions
|
@ -191,7 +191,8 @@ class Search
|
||||||
posts.where("posts.id IN (
|
posts.where("posts.id IN (
|
||||||
SELECT pa.post_id FROM post_actions pa
|
SELECT pa.post_id FROM post_actions pa
|
||||||
WHERE pa.user_id = #{@guardian.user.id} AND
|
WHERE pa.user_id = #{@guardian.user.id} AND
|
||||||
pa.post_action_type_id = #{post_action_type}
|
pa.post_action_type_id = #{post_action_type} AND
|
||||||
|
deleted_at IS NULL
|
||||||
)")
|
)")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue