Removed accidental n+1 query from notifications, updated some deps,

improved how "show more" link looks
This commit is contained in:
Eugen Rochko committed 2017-01-26 14:52:07 +01:00
1 parent 2f18c77e44
commit cc5c1e5feb
7 files changed
+36 -25

No files matched your search

+2
View File
@@ -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