-
Notifications
You must be signed in to change notification settings - Fork 22
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
Wrong notifications about mentions #21
Comments
@JayVii were those posts replies to your post? i added support for replies since sometimes people reply to post but don't mention me. maybe the labeling needs to be adjusted. |
No, they are not directed at me. As soon as I built the 2.0.0-3 docker image and deployed it, i got multiple notifications per minute. All from posts where someone i follow reponds to somebody else. I was never involved there |
thanks! ok looking at the logic again. you can delete that rule in the meantime. i will also add some functionality to recreate notifications and the timeline with the fix. i usually test on my own instance before releasing, but i rushed these fixes out. :-( |
I rolled back to my last working version until I have time to fiddle, so I am good :)
No worries, I am happy to run untested builds, try them out and report any potential issues. I have never used crystal before, so I need to get into it before I can properly contribute. Thanks for your effort, I really appreciate that! |
I can confirm this behaviour and am available for further tests as well, if needed. |
FYI, for the meantime, I am running 2.0.0-3 with the rules set from 2.0.0-2. Working great! |
i haven't been able to reproduce this, either via tests, or by setting up several instances of ktistec. i'm home again after traveling so i'll deply this myself and see if that help. |
this should be fixed now. i have a couple more related changes to make before it's complete but the underlying bug is fixed. replied to objects are not always cached locally but the match was succeeding with nothing bound. subsequent conditions then matched and bound values incorrectly. |
leaving this open, pending confirmations. |
Just built the image and deployed it. Works as it should! |
thanks @JayVii i've been running it all day and it seems to fix the problem. closing. |
one final note. i have a commit already to go with a migration that will clean up the incorrect notifications. it will drop tomorrow. |
Thank you a lot @toddsundsted! |
Took me a bit to test, but can now also confirm: works as expected 💯 |
i added a migration to automatically clean up the incorrect notifications. if you have lot of messages (almost three years, like i do) it uses too much memory, and you might want to wait until i push a fix for that. both otherwise it will run automatically if you build and run a server from the latest main. |
heads-up for those trying it: make sure you have a backup of your DB before. In my case the container crashed and, after reverting to the former image, all posts, followers and followings were gone so that I had to restore the DB.
|
I just installed
2.0.0-3
and get random notifications of being mentioned in posts where I am not actually mentioned in. Looks like fbec729 is overdoing something there.The text was updated successfully, but these errors were encountered: