diff options
Diffstat (limited to 'app/models/mention.rb')
-rw-r--r-- | app/models/mention.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/mention.rb b/app/models/mention.rb index a8d243259..7450b1b85 100644 --- a/app/models/mention.rb +++ b/app/models/mention.rb @@ -17,4 +17,11 @@ class Mention < ApplicationRecord has_one :notification, as: :activity, dependent: :destroy validates :account, uniqueness: { scope: :status } + + delegate( + :username, + :acct, + to: :account, + prefix: true + ) end |