Removed accidental n+1 query from notifications, updated some deps,
improved how "show more" link looks
This commit is contained in:
1 parent
2f18c77e44
commit
cc5c1e5feb
7 files changed
+36
-25
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user