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: add item.creator in item like response #644

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

spaenleh
Copy link
Member

@spaenleh spaenleh commented Oct 11, 2023

This PR also corrects a wrong import from #640 which makes the build fail. Ref

Explanation of the change:
We need to manually do the join on item.creator with the member table for the creator to be included in the response. TypeORM does not include nested relations by default.

Related PRs that previously fixed a similar issue: #502 #524

This bug was discovered from the "quote inside avatar" bug in the library:
Screenshot 2023-10-11 at 15 18 55

@spaenleh spaenleh linked an issue Oct 11, 2023 that may be closed by this pull request
@spaenleh spaenleh requested a review from pyphilia October 23, 2023 07:52
@spaenleh spaenleh force-pushed the 643-add-itemcreator-in-item-like-response branch from 4ba9cb1 to 504cd24 Compare October 23, 2023 07:57
@spaenleh spaenleh merged commit 4e06957 into main Oct 24, 2023
@spaenleh spaenleh deleted the 643-add-itemcreator-in-item-like-response branch October 25, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add item.creator in item like response
3 participants