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
|
end
|
||||||
|
|
||||||
def reblog_visibility
|
def reblog_visibility
|
||||||
type == :reblog ? status.visibility : :public
|
type == :reblog && status.present? ? status.visibility : :public
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
Loading…
Reference in a new issue