Fix NoMethod error in reblog_visibility
This commit is contained in:
parent
205d0e85ca
commit
8837025376
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue