Comment on Unread Count Says 1, While Inbox is Empty
Nothing4You@programming.dev 5 months ago
if you open lemmy.world/api/v3/user/unread_count after being logged in, it should at least tell you what kind of unread message it is.
with that information it can probably be narrowed down a bit.
i don’t think this is related to an inconsistency with blocked users, as that is only being fixed in 0.19.4 or 0.19.5: github.com/LemmyNet/lemmy/issues/4227
moderated or deleted comments as mentioned by others don’t look like they would be the case when i’m looking at the 0.19.3 code.
the bot reply mentioned by @DABDA@lemm.ee seems like a very plausible explanation, as bot accounts are hidden from the comment reply list in the api, but they’re not currently excluded from the notification count.
i’ll have a look at whether that is still the case in the current development version in a bit and submit a pr to fix that if it is.
dohpaz42@lemmy.world 5 months ago
Looks like @DABDA@lemm.ee was correct. It was the piped bot that replied to a video I posted in a comment. Once I enabled bot accounts, I was able to mark it read and disable the bot accounts option again.
Thank you!
Nothing4You@programming.dev 5 months ago
I’ve submitted a PR to fix this, it might still make it into 0.19.4.
fyi @DABDA@lemm.ee
DABDA@lemm.ee 5 months ago
Awesome, glad I was able to help!
That bot has long been a thorn in my side, both due to that Lemmy bug but relatedly because I used to include Piped links with all my YT ones but the bot doesn’t(/didn’t?) check for them before replying anyway. I’ve never created a bot but I can’t imagine it’s more than like a single line to do a regex search for the exact link it intends to post and aborting if it’s found.
Nothing4You@programming.dev 5 months ago
curious, what do you mean by checking them?
DABDA@lemm.ee 5 months ago
The Piped bot is checking comments for instances of a YouTube domain and video id (I don’t know specifically what it triggers on) and then replies with a link to that video id as a Piped-based one. But what it should also do is check if the initial comment also contains the Piped URL it’s about to post and then not reply with a duplicate of that same address.
For example I’d post something like
And the bot would reply offering the exact “Piped mirror” address I had already linked to. This would happen regardless of if I used custom link text or just left it as a raw URL so the bot clearly wasn’t doing a check of either method.