1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

Return profile URL when available instead of actor URI for MastodonAPI mention URL

Fixes #1165
This commit is contained in:
Thibaut Girka 2019-08-07 20:29:30 +00:00
parent aa718ab8f6
commit a10c840aba

View file

@ -28,7 +28,7 @@ def render("mention.json", %{user: user}) do
id: to_string(user.id),
acct: user.nickname,
username: username_from_nickname(user.nickname),
url: user.ap_id
url: User.profile_url(user) || user.ap_id
}
end