diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 03:57:41 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 03:57:41 -0600 |
commit | f3048559d9966e6bf3761d31cb79e01a005ebb78 (patch) | |
tree | 47df232c0104b8e5c3945c500c34de883fc77539 /app/workers | |
parent | 11d09ca192f9eff37938f781a5c0dda3ed65685b (diff) |
fix mention processing bug
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_status_worker.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb index ac3aef1fe..cdce28047 100644 --- a/app/workers/post_status_worker.rb +++ b/app/workers/post_status_worker.rb @@ -12,7 +12,9 @@ class PostStatusWorker status.update!(options.slice(:visibility, :local_only, :reject_replies, :hidden).compact) status.reload - process_mentions_service.call(status, skip_process: options[:process_mentions] != true) unless options[:nomentions] || status.hidden + Rails.cache.delete("statuses/#{status.id}") + + process_mentions_service.call(status, skip_process: (options[:process_mentions] != true)) unless options[:nomentions] LinkCrawlWorker.perform_async(status.id) unless options[:nocrawl] || status.spoiler_text.present? DistributionWorker.perform_async(status.id) unless options[:distribute] == false @@ -23,8 +25,6 @@ class PostStatusWorker PollExpirationNotifyWorker.perform_at(status.poll.expires_at, status.poll.id) if status.poll - Rails.cache.delete("statuses/#{status.id}") - return true if !status.reply? || status.account.id == status.in_reply_to_account_id || status.hidden ActivityTracker.increment('activity:interactions') return if status.account.following?(status.in_reply_to_account_id) |