From 88370253763d5649419364413d65f6be83f95d8b Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 31 Aug 2021 16:31:03 +0900 Subject: [PATCH] Fix NoMethod error in reblog_visibility --- app/models/notification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notification.rb b/app/models/notification.rb index 2fccee19a..5dd959643 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -97,7 +97,7 @@ class Notification < ApplicationRecord end def reblog_visibility - type == :reblog ? status.visibility : :public + type == :reblog && status.present? ? status.visibility : :public end class << self