diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-03-12 09:11:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 09:11:36 +0100 |
commit | ddbe906c25fc370c92fa557d3637d50b7af97754 (patch) | |
tree | 390d410ca8f07ac883eb3395118864619e054653 /app/lib/activitypub/activity.rb | |
parent | 883099f3c953ee5acb30b308f7f5d985e3126f02 (diff) |
Fix not updating a status when newer version is fetched manually (#17745)
Diffstat (limited to 'app/lib/activitypub/activity.rb')
-rw-r--r-- | app/lib/activitypub/activity.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index 706960f929a..f599e1b58fd 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -71,15 +71,7 @@ class ActivityPub::Activity end def object_uri - @object_uri ||= begin - str = value_or_id(@object) - - if str&.start_with?('bear:') - Addressable::URI.parse(str).query_values['u'] - else - str - end - end + @object_uri ||= uri_from_bearcap(value_or_id(@object)) end def unsupported_object_type? |