Skip to content

Commit

Permalink
Fix silent mention by circle
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Aug 31, 2020
1 parent ae871c4 commit 7ef4800
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/services/process_mentions_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ def call(status)
"@#{mentioned_account.acct}"
end

if circle.present?
circle.accounts.find_each do |target_account|
mention = target_account.mentions.new(status: status, silent: true)
mentions << mention if mention.save!
end
end

status.save!
check_for_spam(status)

Expand Down

0 comments on commit 7ef4800

Please sign in to comment.