summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2019-10-06 14:13:04 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-10-06 14:48:37 +0000
commit2a2d834ff75fc9d2e89ffda392d49f0ad29c45c1 (patch)
treeb23321bccbcd7e7686a593d46e62036cd39173fe /lib
parent294e08cb65940ff193d6920e576f56718a5623f4 (diff)
downloadpleroma-2a2d834ff75fc9d2e89ffda392d49f0ad29c45c1.tar.gz
pleroma-2a2d834ff75fc9d2e89ffda392d49f0ad29c45c1.zip
Use the user.id instead of nickname in report URLs
Ensures links to profiles of remote users work.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/emails/admin_email.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/emails/admin_email.ex b/lib/pleroma/emails/admin_email.ex
index c14be02dd..5a0903c13 100644
--- a/lib/pleroma/emails/admin_email.ex
+++ b/lib/pleroma/emails/admin_email.ex
@@ -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