mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix WebUI crashing for accounts with null URL (#35651)
This commit is contained in:
parent
927cfea5ae
commit
3caa318dfe
3 changed files with 6 additions and 5 deletions
|
|
@ -65,7 +65,7 @@ class REST::AccountSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def url
|
||||
ActivityPub::TagManager.instance.url_for(object)
|
||||
ActivityPub::TagManager.instance.url_for(object) || ActivityPub::TagManager.instance.uri_for(object)
|
||||
end
|
||||
|
||||
def uri
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue