Fix error and incorrect URLs in /api/v1/accounts/:id/featured_tags
for remote accounts (#27459)
This commit is contained in:
parent
f49a49ffd6
commit
e6b148a1c6
4 changed files with 54 additions and 25 deletions
|
@ -10,7 +10,9 @@ class REST::FeaturedTagSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def url
|
||||
short_account_tag_url(object.account, object.tag)
|
||||
# The path is hardcoded because we have to deal with both local and
|
||||
# remote users, which are different routes
|
||||
account_with_domain_url(object.account, "tagged/#{object.tag.to_param}")
|
||||
end
|
||||
|
||||
def name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue