Skip to content

Commit

Permalink
set the annotator to be the “Smooch Bot”
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 committed Oct 4, 2024
1 parent 0c1917e commit 0b0c2ec
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 0b0c2ec

Please sign in to comment.