Pleroma.User: Fix syntax and user.ap_id call

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-03-02 06:57:28 +01:00
parent 3d22642352
commit 39a5bea9b7
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 3 additions and 3 deletions

View File

@ -1204,13 +1204,13 @@ def parse_bio(bio, user) do
end)
# TODO: get profile URLs other than user.ap_id
profile_urls = [user[:ap_id]]
profile_urls = [user.ap_id]
bio
|> CommonUtils.format_input("text/plain", %{
|> CommonUtils.format_input("text/plain", [
mentions_format: :full,
rel: &RelMe.maybe_put_rel_me(&1, profile_urls)
})
])
|> elem(0)
|> Formatter.emojify(emoji)
end