Closed Apogate closed 7 years ago
Stickies might be due to how bump order is detected during page generation. Do stickies work in the Catalog, which actually sorts out stickies?
Stickies do work in the catalog, but the formatting is broken. I'll see what your code does and push the fix
Update: i do not understand how catalog's space magic works
While this isn't the complete answer, this SQL query would return OPs sorted by stickies first then regular bump order (based on the last
column).
SELECT * FROM
imgboardWHERE
resto= 0 ORDER BY sticky DESC, last DESC
There are two problems with this:
Stickies working a bit more as of dd63925102ca180db14f3fa3e392f7bca5be2393.
The most basic way to prevent sticky fighting currently would be to infinitely increase the sticky column's amount. However, that's obviously a bad idea.
This is a real blanket query as opposed to how Catalog determined stickies so the fine tuning is difficult. It'd be great to only sort non-stickies by their last
column. Fortunately, due to this change (of handling true thread order in Log's caching) Catalog's sticky determining code can be removed.
As of 5868a237639f9ec0ae35f2015e29d3c5c9740e5c, stickies (and regular threads) generate as expected.
Specifically as of this commit though, sticky order is by all definitions predetermined. First, all rows that are OPs are sorted by sticky status descending (true -> false) then all non-stickies are actually sorted by their last
column descending. Therefore, sticky order is determined purely by their original ordering (so older stickies are priority).
everything here has been resolved, minus report button which is a JS thing im gonna look at separately
After merging regist, some things broke:
The report button still doesn't work
catalog link in reply mode is broken