diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-03-26 01:56:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 01:56:41 +0100 |
commit | 0c8945e5ff9e75dd322ee2b2c4ea9cc1dc728911 (patch) | |
tree | fd2489163804272efcfbca55678de25fb274556a /app/lib | |
parent | e187537dfdf8ec1d25479d9ad4d7b0114f30ba65 (diff) |
Change `tootctl media remove-orphans` to work for all classes (#13316)
Change `tootctl media lookup` to not use an interactive prompt
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) |