forked from AkkomaGang/akkoma
Simplify logic to mention.js url
field
`User.profile_url` already fallbacks to ap_id
This commit is contained in:
parent
a10c840aba
commit
089d53a961
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def render("mention.json", %{user: user}) do
|
||||||
id: to_string(user.id),
|
id: to_string(user.id),
|
||||||
acct: user.nickname,
|
acct: user.nickname,
|
||||||
username: username_from_nickname(user.nickname),
|
username: username_from_nickname(user.nickname),
|
||||||
url: User.profile_url(user) || user.ap_id
|
url: User.profile_url(user)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue