Fix NoMethod error in reblog_visibility

This commit is contained in:
noellabo 2021-08-31 16:31:03 +09:00
parent 205d0e85ca
commit 8837025376

View file

@ -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