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: Initials do not display on notification avatars #5803

Merged
merged 3 commits into from Sep 10, 2023

Conversation

tommoor
Copy link
Member

@tommoor tommoor commented Sep 10, 2023

This was due to notification.user being typed as a User model but actually being a plain object. To fix, introduced a decorator that allows data returned on models to reference the correct underlying store.

This is a poor-mans implementation at the moment, but improves types significantly and lays the foundations for improvements in this area such as lazy-loaded relations, while fixing the bug at hand.

@tommoor tommoor merged commit 5c83999 into main Sep 10, 2023
11 checks passed
@tommoor tommoor deleted the tom/model-references branch September 10, 2023 01:01
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.

None yet

1 participant