Fix a bear check when the activity object is nil (#14981)
parent
a1d7782cfd
commit
4395de7360
|
@ -74,7 +74,7 @@ class ActivityPub::Activity
|
|||
@object_uri ||= begin
|
||||
str = value_or_id(@object)
|
||||
|
||||
if str.start_with?('bear:')
|
||||
if str&.start_with?('bear:')
|
||||
Addressable::URI.parse(str).query_values['u']
|
||||
else
|
||||
str
|
||||
|
|
Loading…
Reference in New Issue