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

This commit is contained in:
Takeshi Umeda 2020-10-14 05:41:00 +09:00 committed by GitHub
父節點 bb180921a3
當前提交 b4c4af18dc
沒有發現已知的金鑰在資料庫的簽署中
GPG key ID: 4AEE18F83AFDEB23

查看文件

@ -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