backend: move mentionedUsers query to mention handler #134
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/backend-toHtml-mentionedUsers"
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?
The mentionedUsers query was being run on every post, regardless of
whether a mention was in it or not.
This resulted in an SQL query ending in
WHERE userId IN ()
which isnot allowed in PostgreSQL.
Reference: #132
Changelog: Fixed
(Not adding a
fixes
line since I'm not sure if it's really fixed, but it does seem to resolve the issue on my local testing environment)759cb49976
to199622b415
I think
199622b415
should fix the problem at hand here.If only I knew a guy that read the contributing guide recently and should have spotted this problem earlier... ah right, 🥴 it's me!
Yeah. There's some weird errors relating to types, but I think I'll leave that for a second PR.