Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display name being displayed instead of domain in remote reports #31613

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

ClearlyClaire
Copy link
Contributor

Mastodon anonymizes local reports when forwarding them, but that is not always the case of other software.

The moderation interface already hides the particular account attached to remote reporters, so it makes sense to hide it in the report notifications as well (even though the full account is returned by the API).

Furthermore, since the display names do not have hover cards or individual links, this PR changes the notifications to use the usernames rather the display names, as those can be changed and could be misleading.

@ThisIsMissEm
Copy link
Contributor

Is the notification API here actually leaking the underlying account instead of just the "handle" to the user? We currently don't surface the remote account anywhere in the moderation UI, I suspect for remote reporters we should return an Instance like entity instead?

@ClearlyClaire
Copy link
Contributor Author

Is the notification API here actually leaking the underlying account instead of just the "handle" to the user?

Yes

We currently don't surface the remote account anywhere in the moderation UI, I suspect for remote reporters we should return an Instance like entity instead?

Yes, but that would be a breaking change. Also note that Mastodon itself does obscure the origin of a report when forwarding it, by making it come from the instance actor, so this is not really a concern on our side, but other implementations are not consistently doing that.

@ThisIsMissEm
Copy link
Contributor

hm, okay, that is unfortunate that the API will give more data than we necessarily should. But further reinforces using instance actors or moderator actor for forwarding reports via Flag activities (I'm going to try to work on standardising Flag and it's usage to align with what software needs)

@ClearlyClaire ClearlyClaire marked this pull request as ready for review September 4, 2024 08:03
@ClearlyClaire ClearlyClaire requested a review from a team September 4, 2024 08:58
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Sep 4, 2024
Merged via the queue into main with commit 585e369 Sep 4, 2024
31 checks passed
@ClearlyClaire ClearlyClaire deleted the fixes/remote-reports-domain branch September 4, 2024 13:54
justinwritescode pushed a commit to justinwritescode/mastodon that referenced this pull request Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants