Skip to content

Post filtering changes in v1.3.5

Dmitry edited this page Jan 24, 2022 · 3 revisions

There were some changes regarding the post filtering logic introduced in v1.3.5

When you hide/remove (from now on "hide" means both hide or remove) a thread/post (from now on "post" means post when the function is used in a thread and "thread" when used in catalog) manually a ChanPostHide object is created for that post which is persisted in the database and loaded upon app restart. That object contains information which is used to decide whether we should hide a post associated with it. When you create a new filter with a pattern for automatic post hide those filters also create ChanPostHide objects for matched posts. In v1.3.5 a new flag was added into ChanPostHide object: "manuallyRestored". In the previous versions when you clicked hidden posts the ChanPostHide would be removed from the memory/database making that post a normal visible post. But that was not enough so in the v1.3.5 and above instead of removing the ChanPostHide the "manuallyRestored" will instead be set to true. Also automatic filters are not applied anymore for posts with ChanPostHide object (in other words manually hidden posts OR posts that were then unhidden). If you want an automatic filter to affect those posts you need to go to "View manually removed posts" and "restore" those posts (they will be marked as "Manually restored"). After restoring them the automatic filters will again start matching those posts. In other words, clicking hidden post or a quote pointing to a hidden post will now mark it's ChanPostHide object as "manuallyRestored". But restoring posts on the "View manually hidden posts" screen will actually remove the ChanPostHide objects associated with posts.

What was the reason for the change?

  1. Because of the introduction of new quote marks that point to hidden posts (Like ">>112233 (Hidden)" or ">>123456 (Removed)").
  2. It's now possible to unhide posts by clicking quotes pointing at them (also works in reply chain popups).
  3. It's now possible to hide a post which has no replies to it yet and mark it to automatically hide all future replies to that post. With previous solution doing that would unhide the whole post chains, not the individual posts. So the change was necessary.
Clone this wiki locally