diff options
author | feld <feld@feld.me> | 2019-10-06 14:13:04 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-06 14:48:37 +0000 |
commit | 2a2d834ff75fc9d2e89ffda392d49f0ad29c45c1 (patch) | |
tree | b23321bccbcd7e7686a593d46e62036cd39173fe /lib | |
parent | 294e08cb65940ff193d6920e576f56718a5623f4 (diff) | |
download | pleroma-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.ex | 2 |
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 |