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 2 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
28 28
       id: to_string(user.id),
29 29
       acct: user.nickname,
30 30
       username: username_from_nickname(user.nickname),
31
-      url: user.ap_id
31
+      url: User.profile_url(user)
32 32
     }
33 33
   end
34 34
 
@@ -106,7 +106,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
106 106
       following_count: user_info.following_count,
107 107
       statuses_count: user_info.note_count,
108 108
       note: bio || "",
109
-      url: user.ap_id,
109
+      url: User.profile_url(user),
110 110
       avatar: image,
111 111
       avatar_static: image,
112 112
       header: header,

Loading…
Cancel
Save