* [UserWarnable] fix `warning_user_id` never being set
I know `update` & `update_columns` function differently, but I feel the difference isn't needed
* [UserWarnable] Add inline user and timestamp
* lint
* Move warning info into partial
Also removes the user/timestamp as that is redundant for now
* Fix unmarking
* Tweak fixer script
---------
Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
There was lots of duplication between id/name searching, with a plethora
of different approaches. Now it's all in one place.
A few places that didn't have name/id search previously now do.
The index for posts is also getting added, but will get used at a later date
If this turns out to work fine the materialized index colums can be dropped
This contains a semantic change where dmail and wiki page searches for the body
no longer includes matches for the title
This replaces the old simple versioning helper that existed on
e621. The implementaiton is roughly the same but has been updated
to use newer rails methods.
No, it's not very flexible, but it didn't need to be.