Skip to content
New issue

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

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

Already on GitHub? # to your account

Pass correct user id in Move notification #3224

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

hughrun
Copy link
Contributor

@hughrun hughrun commented Jan 17, 2024

We were passing the requesting user's moved_to value to the Move notification template, instead of the id of the user that they are being notified about. Additionally, the id_to_username template tag had no fallback for if the user_id is None.

This resolves both problems and removes an unnecessary space in a template for when the logged in user made the move.

Fixes #3196

We were passing the *requesting* user's moved_to value to the Move notification template, instead of the id of the user that they are being notified about.
Additionally, the id_to_username template tag had no fallback for if the user_id is None.

This resolves both problems and removes an unnecessary space in a template for when the logged in user made the move.

Fixes bookwyrm-social#3196
@@ -125,7 +125,8 @@ def id_to_username(user_id):
name = parts[-1]
value = f"{name}@{domain}"

return value
return value
return "a new user account"
Copy link
Member

@mouse-reeve mouse-reeve Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge this since it's an active bug, but this should be localized as _("a new user account")

@mouse-reeve mouse-reeve merged commit 61a6ee2 into bookwyrm-social:main Jan 17, 2024
10 checks passed
@hughrun hughrun self-assigned this Jan 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
2 participants