Your details → Fetch my Gravatar again: a failure is shown as a success message #425
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#425
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-09-29 in a read-only review of postulo at
95348908d, comparing the two places that report a Gravatar fetch.Checked again on 2026-10-01 against
mainat0a5cad587: still present.GravatarRefreshViewreports every outcome ofavatars.fetch_gravatarwithmessages.success, including "Gravatar could not be reached just now" and "Gravatar has no picture for your address".ProfileView._after_savingreports the same two outcomes, with the same strings, as a warning and as information. The same failure is therefore drawn green from one button and amber from the other.accounts/views.py:236-243,GravatarRefreshView.post;accounts/views.py:191-203,ProfileView._after_saving;templates/partials/messages.html, which picks the alert variant frommessage.level_tag.report_gravatar(request, outcome)next toavatars.fetch_gravatar, returning success forfound, info fornoneand warning forerror, and call it from both views.Done when
tests/test_avatars.pymakes the fetch fail, posts toaccounts:avatar_refresh, and finds the message atmessages.WARNING, notmessages.SUCCESS.