diff options
author | Starfall <us@starfall.systems> | 2020-07-24 18:31:42 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-07-24 18:31:42 -0500 |
commit | e4a39e9097aaa5f71eb807068eb31b45b2403ff3 (patch) | |
tree | e066a17566163a048c467ad931da5d6cec5f088c /app/services/process_mentions_service.rb | |
parent | 2b41ed0fd69a7f7a0e17d6f0c6a421805c5e3127 (diff) | |
parent | 913141c6780bef463a2fe855aaeb0b429f806ea2 (diff) |
Merge branch 'glitch' into main
Diffstat (limited to 'app/services/process_mentions_service.rb')
-rw-r--r-- | app/services/process_mentions_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb index 65a3f64b8..f45422970 100644 --- a/app/services/process_mentions_service.rb +++ b/app/services/process_mentions_service.rb @@ -36,7 +36,8 @@ class ProcessMentionsService < BaseService next match if mention_undeliverable?(mentioned_account) || mentioned_account&.suspended? - mentions << mentioned_account.mentions.where(status: status).first_or_create(status: status) + mention = mentioned_account.mentions.new(status: status) + mentions << mention if mention.save "@#{mentioned_account.acct}" end |