diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-10-14 05:41:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 22:41:00 +0200 |
commit | b4c4af18dcec04f0c8ad89b45ce3cad20ddfdc12 (patch) | |
tree | a17b87a582fed1a1b0fa90f1030d588426450b19 | |
parent | bb180921a362f0e5972674caaad8921e4f32de4a (diff) |
Fix a bear check when the activity object is nil (#14981)
-rw-r--r-- | app/lib/activitypub/activity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index 224451f41..2b5d3ffc2 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -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 |