Add ability to search in archive/drafts (replaces !10)
(This is the same as !10 (closed) but from a branch with a proper name instead of master
)
This adds the possibility to search for a string in a post's text and author name (as long as the user is not anonymous, obviously).
The search is only a basic case-insensitive text search, and not a proper text searching (accents aren't ignored for example). Surely there are better, more complete ways to do this, but this could be a start, and already covers a majority of use cases. Changing the search algorithm itself later shouldn't change how it's used anyway.
The interface is simple: adding a search
query parameter to specify a string to search. No search
parameter or an empty search
does nothing, and the resulting post list will be the same as it is today.
I added it to the listing of subscribed posts, own posts, and drafts. I don't know how useful searching through notifications would be.