mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Refactor flag types for more customization
This commit is contained in:
parent
e600fb79b3
commit
838568cbc3
26 changed files with 253 additions and 82 deletions
|
@ -70,7 +70,7 @@ SQL
|
|||
SELECT pa.user_id, min(pa.id) id
|
||||
FROM post_actions pa
|
||||
JOIN badge_posts p on p.id = pa.post_id
|
||||
WHERE post_action_type_id IN (#{PostActionType.flag_types.values.join(",")}) AND
|
||||
WHERE post_action_type_id IN (#{PostActionType.flag_types_without_custom.values.join(",")}) AND
|
||||
(:backfill OR pa.post_id IN (:post_ids) )
|
||||
GROUP BY pa.user_id
|
||||
) x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue