Browse Source

Merge branch 'patch-3' into 'develop'

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

Closes #1165

See merge request pleroma/pleroma!1541
tags/v1.0.90
rinpatch 6 months ago
parent
commit
b18234e04c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/pleroma/web/mastodon_api/views/account_view.ex

+ 2
- 2
lib/pleroma/web/mastodon_api/views/account_view.ex View File

@@ -28,7 +28,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
id: to_string(user.id),
acct: user.nickname,
username: username_from_nickname(user.nickname),
url: user.ap_id
url: User.profile_url(user)
}
end

@@ -106,7 +106,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
following_count: user_info.following_count,
statuses_count: user_info.note_count,
note: bio || "",
url: user.ap_id,
url: User.profile_url(user),
avatar: image,
avatar_static: image,
header: header,


Loading…
Cancel
Save