From cc5c1e5febf588183145e30dc7e98e5ea33cd398 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 26 Jan 2017 14:52:07 +0100 Subject: Removed accidental n+1 query from notifications, updated some deps, improved how "show more" link looks --- app/models/notification.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models') 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 -- cgit