Removed accidental n+1 query from notifications, updated some deps,
improved how "show more" link looks
This commit is contained in:
parent
2f18c77e44
commit
cc5c1e5feb
7 changed files with 36 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue