Change tootctl media remove-orphans
to work for all classes (#13316)
Change `tootctl media lookup` to not use an interactive prompt
This commit is contained in:
parent
e187537dfd
commit
0c8945e5ff
4 changed files with 98 additions and 41 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue