Before this rewrite, containers and backlinks were created even if the relevant
post did not exist in the page. If the post would never end up existing, it
resulted in a waste of resources. QuoteBacklink's cache also prevented these
containers and backlinks from being garbage collected.
We now only store a map of fullIDs. This feature should be faster since less
elements gets allocated, although the difference is probably negligible.
Currently breaks posting.
TODO:
* Fix style switching from NSFW to SFW (SFW to NSFW works)
- It is worth noting this used to work.
* Fix post form not updating its currently selected thread.
* Fix navigation between threads in different boards (same boards
works? Maybe?)
* Handle race conditions due to pop states.
- I'm having a lot of trouble wrapping my mind around this one.
Mostly due to the fact that I have no idea where to begin with
it. But this isn't a big issue unless you pop state multiple
times within seconds.
I just need some exceptions when we try to disconnect features
that haven't even finished connecting due to threads not being
available yet.
Most of the early issues, like double-backlinks, incorrect
thumbnails, etc, have been fixed, I think. Or at least I'm no
longer running into them all the time.
because @MayhemYDG had already done it and done it better. So I
thought mine was working when it was just his... and then
realized when I didn't disconnect it and the index was getting a
title from a thread that it wasn't working and his was.
So let's just use his code.
No, seriously, this commit breaks everything if you open a reply.
It's k, though, that's why this branch exists: so I can break it
all without harming end users and stable development.
Holy carp, though, the amount of errors thrown!
I shouldn't be messing with stuff like this without a really good
reason for doing so, and the longer I thought about it, the more
it occurred to me that I didn't have one.