mirror of
https://git.rape.pet/ulith/amputoma.git
synced 2025-02-24 21:53:59 +01:00
Return profile URL when available instead of actor URI for MastodonAPI mention URL
Fixes #1165
This commit is contained in:
parent
aa718ab8f6
commit
a10c840aba
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView 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.ap_id
|
url: User.profile_url(user) || user.ap_id
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue