Use the user.id instead of nickname in report URLs
Ensures links to profiles of remote users work.
This commit is contained in:
parent
294e08cb65
commit
2a2d834ff7
3 changed files with 4 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ defmodule Pleroma.Emails.AdminEmail do
|
|||
end
|
||||
|
||||
defp user_url(user) do
|
||||
Helpers.o_status_url(Pleroma.Web.Endpoint, :feed_redirect, user.nickname)
|
||||
Helpers.o_status_url(Pleroma.Web.Endpoint, :feed_redirect, user.id)
|
||||
end
|
||||
|
||||
def report(to, reporter, account, statuses, comment) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue