Skip to content

Commit

Permalink
Merge pull request #6397 from akatsoulas/dup-entries-queue
Browse files Browse the repository at this point in the history
Exclude dups from the query
  • Loading branch information
akatsoulas authored Dec 6, 2024
2 parents 6356696 + c4b4ecd commit 446eb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitsune/flagit/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def flag(request, content_type=None, model=None, object_id=None, **kwargs):
content_type=content_type,
object_id=object_id,
reason=FlaggedObject.REASON_CONTENT_MODERATION,
)
).exclude(status=FlaggedObject.FLAG_DUPLICATE)
default_kwargs = {"content_object": content_object, "reason": reason, "notes": notes}
if reason == FlaggedObject.REASON_CONTENT_MODERATION:
moderation_flag_query.update(status=FlaggedObject.FLAG_PENDING)
Expand Down

0 comments on commit 446eb38

Please sign in to comment.