diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/notification.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/notification.rb b/app/models/notification.rb index b7e8c9e71..b7b474869 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -66,6 +66,8 @@ class Notification < ApplicationRecord private def set_from_account + return unless new_record? + case activity_type when 'Status', 'Follow', 'Favourite', 'FollowRequest' self.from_account_id = activity(false)&.account_id |