Fix a bear check when the activity object is nil (#14981)

lolsob-rspec
Takeshi Umeda 2020-10-14 05:41:00 +09:00 committed by GitHub
parent a1d7782cfd
commit 4395de7360
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class ActivityPub::Activity
@object_uri ||= begin @object_uri ||= begin
str = value_or_id(@object) str = value_or_id(@object)
if str.start_with?('bear:') if str&.start_with?('bear:')
Addressable::URI.parse(str).query_values['u'] Addressable::URI.parse(str).query_values['u']
else else
str str