about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-01 16:37:59 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:17 -0500
commit93d7dc54bf523d8c52794e395947b477b114e3c1 (patch)
tree82a4bc320930cef7588ef7973b6330c43dd9b5f4 /app/models
parent6681dcb849233deecf37d8b2c2968c13610ce0e9 (diff)
[Federation] Define silent mentions on status model
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 5c58917bc..82be3ec85 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -71,6 +71,7 @@ class Status < ApplicationRecord
   has_many :replies, foreign_key: 'in_reply_to_id', class_name: 'Status', inverse_of: :thread
   has_many :mentions, dependent: :destroy, inverse_of: :status
   has_many :active_mentions, -> { active }, class_name: 'Mention', inverse_of: :status
+  has_many :silent_mentions, -> { silent }, class_name: 'Mention', inverse_of: :status
   has_many :media_attachments, dependent: :nullify
 
   has_many :inlined_attachments, class_name: 'InlineMediaAttachment', inverse_of: :status, dependent: :destroy