diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-03-27 21:54:44 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-03-27 21:54:44 +0100 |
commit | 7b435fd9bf81265241fab792d8e8e0c2f4f1b619 (patch) | |
tree | ef366f436ed5180489cc9377268e10328fe9a932 /app/lib | |
parent | 02f1c04fabab221130de8dfb5611be81825b193b (diff) | |
parent | 6c79b7237e31eb510af7df3f4f2cb133dea39845 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - `app/services/post_status_service.rb`: CW/sensitive logic fixed upstream, but different in glitch-soc. Ported the changes accordingly.
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activitypub/tag_manager.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb index ed680d762..1523f86d4 100644 --- a/app/lib/activitypub/tag_manager.rb +++ b/app/lib/activitypub/tag_manager.rb @@ -15,6 +15,8 @@ class ActivityPub::TagManager def url_for(target) return target.url if target.respond_to?(:local?) && !target.local? + return unless target.respond_to?(:object_type) + case target.object_type when :person target.instance_actor? ? about_more_url(instance_actor: true) : short_account_url(target) |