Aerilita posted in the Report a Bug guild:
"My post appears void of likes on the website, but with a +1 via the chat extension."
I haven't looked at the extension's code, but my guess would be that it's treating false likes in the same way as true ones. I.e., when someone clicks the like button on a post, their plus-one is recorded in the message like this:
If the extension is counting items in the likes object without checking if they're true or false, that would explain what Aerlita noticed. I suspect this is what's happening in the extension because exactly that bug appears in a chat tool that I wrote for myself. :)
Aerilita posted in the Report a Bug guild: "My post appears void of likes on the website, but with a +1 via the chat extension."
I haven't looked at the extension's code, but my guess would be that it's treating
false
likes in the same way astrue
ones. I.e., when someone clicks the like button on a post, their plus-one is recorded in the message like this:But if they change their mind and click like again to remove their plus-one, the data in the message changes to this:
If the extension is counting items in the
likes
object without checking if they're true or false, that would explain what Aerlita noticed. I suspect this is what's happening in the extension because exactly that bug appears in a chat tool that I wrote for myself. :)