Skip to content
Snippets Groups Projects
Unverified Commit b4c4af18 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by GitHub
Browse files

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

parent bb180921
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment