Removed accidental n+1 query from notifications, updated some deps,
improved how "show more" link looks
This commit is contained in:
@ -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