Commit Graph

71 Commits

Author SHA1 Message Date
Bofh 5eae25fec6 Add "languages" field in filter-users to filter by most-used language 2022-12-28 23:49:34 +01:00
Bofh c398b2b1d6 Add account_id filter for mastodon posts retrieval 2022-12-28 23:48:50 +01:00
Bofh 006067e851 Add a feature to filter posts by "local" (instance only) 2022-12-24 19:08:38 +01:00
Bofh 81b21d838f Add "next_start" to JSON API result on posts 2022-12-24 02:50:17 +01:00
Bofh 5f2cc85c9a Set default delay to posts when delay is lower 2022-12-24 02:46:27 +01:00
Bofh 52f99b064b Add API to retrieve posts (with hardcoded max limit 10k) 2022-12-24 02:41:32 +01:00
Bofh b0c912a300 Add a way to filter users that were moved to other instances 2022-12-24 00:47:21 +01:00
Bofh 5795a7fc0d Support !(negation) of any instance in "instances" field of accounts search 2022-12-19 16:13:20 +01:00
Bofh addb800ec5 Fix bug not letting add new instance + show mandatory fields with "*" 2022-12-19 01:18:37 +01:00
Bofh 7a011ffde0 Support the usage of non-base64-compatible characters by URL encoding "expr" 2022-12-18 01:35:13 +01:00
Bofh 1cff51370f Add last_n_active to limit db query by the latest N active users 2022-12-17 20:05:27 +01:00
Bofh f0c027e178 Implement native HTTP application level caching (using currently implemented caching systems)
* To "bust" an HTTP cache, implement a timestamp GET parameter that changes whenever it should.
2022-12-17 18:07:13 +01:00
Bofh 959a26c8ba Fix bug where fields + note was not creating space, and therefore some regex where not working 2022-12-17 02:52:48 +01:00
Bofh 0d5b7e9800 Fix important bug (created on ffdbab1) that was miss-ordering accounts in results (DANGEROUS) 2022-12-16 18:01:18 +01:00
Bofh 0dac8435dd Change cache key for filter-users matches 2022-12-16 16:04:33 +01:00
Bofh ffdbab1f79 Improved "user_filter=remote" page caching 2022-12-16 04:38:14 +01:00
Bofh d8170d81d8 Suppord word sound normalization in regex searches
* For example, a single (crypto|nft) regex will make "cripto" or cr1pto also match.
2022-12-16 03:36:14 +01:00
Bofh ae5fd76efa Fix bug where empty "preset_name" was not creating filter_key correctly 2022-12-13 18:13:33 +01:00
Bofh df6a94fa11 Add feature to "hide" users on specific filters for N time 2022-12-13 16:37:48 +01:00
Bofh dcc159ea91 Improved feedback on silence/suspend actions 2022-12-13 13:15:19 +01:00
Bofh a30fb7e020 Add feature to "trust" users (add their acct on a list) so they are never shown anywhere 2022-12-13 01:23:45 +01:00
Bofh a5c9f07f2e Add "silence" button for accounts in #instance/filter-users view 2022-12-13 00:03:19 +01:00
Bofh f9b9b4be40 Remove data when suspending Mastodon account, only if remote
* Remove classes/PgDatabase restriction to api/vX/database
2022-12-12 20:59:10 +01:00
Bofh c1b72a6b0a A lot of code cleanup with filedb_* functions 2022-12-12 20:46:06 +01:00
Bofh b223abb3ac Implement only_cached for remote profiles, and wait for it to be cached by cron.php 2022-12-11 18:01:03 +01:00
Bofh cebbdfdf59 Implement expression search on API mastodon/accounts/search 2022-12-11 16:46:41 +01:00
Bofh 080bfcf852 Sleep 3 seconds after deleting account, to throttle account suspension 2022-12-09 23:30:47 +01:00
Bofh 0d81b270a8 Don't delete account data just yet (wait for automatic deletion) 2022-12-09 22:38:27 +01:00
Bofh 481eb92b1a Add "explain" field to users filter actions so admins can customize the message to user 2022-12-09 00:36:06 +01:00
Bofh 2a0ce78f3c Created feature to run the pending cronjobs with cron.php
* Fixes for the accounts suspend API
2022-12-08 23:35:45 +01:00
Bofh ebe97d05f7 Fix older/newer than filter on accounts search API method 2022-12-08 21:50:47 +01:00
Bofh fac4cca53a Add API http method for suspending accounts + fixes 2022-12-08 21:21:57 +01:00
Bofh ff321f75fd Created cron system for spawning filter action jobs respecting intervals
* Fixes to adapt more stuff to the cron system from base.php + PgDatabase
2022-12-08 21:08:23 +01:00
Bofh 28e29d3b91 Added cron/job API namespace for handling jobs in cron 2022-12-08 19:42:53 +01:00
Bofh ec3e0cb224 Moved apimod to mod_php and improved api mod.php system 2022-12-08 18:10:18 +01:00
Bofh c6dd28fb30 Add job interval configuration for filter-action UI 2022-12-08 17:32:54 +01:00
Bofh a1ab2a173c Added feature to add new instances to the config 2022-12-08 16:41:08 +01:00
Bofh 9ca4b800ac Capitalize text on all "toast" 2022-12-08 00:26:16 +01:00
Bofh ac0b11aee8 Added a feature to save filter_actions for selected filter 2022-12-08 00:18:06 +01:00
Bofh 2d76574ec9 Add action for filter loading system in UI 2022-12-07 02:41:59 +01:00
Bofh 71ea98643c Add search by "instances" in accounts/search API
* Thanks to @Fer_24@xarxa.cloud for proposing this feature
2022-12-07 01:15:39 +01:00
Bofh 0b69b9f97c Add delete_filter function + UX improvements 2022-12-07 00:13:00 +01:00
Bofh a1616e084b Add last activity filter on UI + fixes 2022-12-06 18:46:33 +01:00
Bofh 1b97c9a03d Add older|newer_than_days on accounts search filtering 2022-12-06 17:59:49 +01:00
Bofh 5dc190f529 Created API to add scheduled actions/jobs for accounts 2022-12-06 17:17:23 +01:00
Bofh edf7c6091a Improved paging and accounts/search API 2022-12-06 16:52:10 +01:00
Bofh e6fd4401b6 Improved accounts search 2022-12-06 16:18:34 +01:00
Bofh a3e44fc699 Implement paging on mastodon/accounts/search API 2022-12-05 17:20:06 +01:00
Bofh 9f52c87575 Make apimod a method for calling API internally on PHP 2022-12-05 16:48:31 +01:00
Bofh 1488ffbc6c Implement mastodon accounts search by filter preset ID 2022-12-05 16:43:10 +01:00