cohost-dedup icon indicating copy to clipboard operation
cohost-dedup copied to clipboard

Deduplication Only Works After Full Refresh

Open NikoBlank opened this issue 2 years ago • 0 comments

Running Firefox 112 on a Windows 10 machine right now. For some reason, I'll see duplicate posts in my Cohost feed until/unless I do a ctrl+F5 to empty the cache. Deduplication lasts until I navigate to a wholly new page (e.g. Notifications) and then return to the home page, whereupon I need to ctrl+F5 again. Strangely, this doesn't seem to be a problem when I use Cohost on my Firefox Nightly install; so long as the user script is running it functions as expected.

Possible complicating factor: At one point I switched to using Nightly as my daily driver (bad decision, I know), so I set it to use my "default" profile to minimize the hassle of changing versions instead of "default-nightly." I also have a separate install of Firefox for running PWAs, which uses the profile "default-release." As such, my current daily-driver Firefox install uses the profile "default-release-1." No idea if this might explain why stuff isn't getting stored properly since I can't read JS well, but hopefully it's a lead to follow-up.

Edit: just noticed that there's a console logging component to the script. When deduplication happens, I see entries in the console log; however, when deduplication is not happening, there are no console log entries.

NikoBlank avatar Apr 25 '23 23:04 NikoBlank