mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 09:44:06 +08:00
This PR adds Bookmarks and PostActions (likes) to the query for `CleanUpInactiveUsers` to fetch qualified users. This PR also allows plugins to modify the `CleanUpInactiveUsers` job query for selecting which users to destroy. The modifier is given the AR relation as the argument. Plugins should avoid executing the query, as it expects a builder style pattern. Implementation: ```ruby register_modifier(:clean_up_inactive_users_query) do |relation| relation.where.missing(:table_name) end ``` |
||
|---|---|---|
| .. | ||
| controllers | ||
| fabricators | ||
| integration | ||
| jobs | ||
| lib | ||
| models | ||
| requests | ||
| serializers | ||
| system | ||