Skip to content

Commit

Permalink
set the annotator to be the “Smooch Bot” (#2069)
Browse files Browse the repository at this point in the history
Set the annotator to "Smooch Bot" so that the bot user is displayed in the content warning cover when a user is blocked.

Reference: CV2-5142
  • Loading branch information
danielevalverde authored Oct 8, 2024
1 parent 11e20d4 commit 5d80f05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/concerns/smooch_blocking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def apply_content_warning_to_user_content(uid)
flag = Dynamic.new
flag.annotation_type = 'flag'
flag.annotated = pm
flag.annotator = BotUser.smooch_user
flag.skip_check_ability = true
flag.set_fields = { show_cover: true, flags: flags }.to_json
flag.save!
Expand Down

0 comments on commit 5d80f05

Please sign in to comment.