Commit Graph

52 Commits

Author SHA1 Message Date
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
Bofh 755db19ca7 Implemented filter presets saving/loading + improvements 2022-12-05 16:31:15 +01:00
Bofh 9a2d4a7f9f Execute filter and implement filter clear/update 2022-12-05 13:35:02 +01:00
Bofh 88e0409367 Remove option "all" for search API. Only local/remote + improved cache 2022-12-02 17:16:10 +01:00
Bofh ed2e7c453a Add methods to cache content (for example, on heavy postgres queries) 2022-12-02 16:53:24 +01:00
Bofh d54d60bc9f Make statuses (count) retrieved on the SQL query instead 2022-12-02 15:44:45 +01:00
Bofh 87158897ad Make no_avatar filter work in the SQL part 2022-12-01 08:38:49 +01:00
Bofh a536c8c1c0 Add user filtering for no follows/statuses/avatar 2022-12-01 01:31:00 +01:00
Bofh dc71b89d3e Add following/followers/statuses to search result 2022-12-01 01:17:41 +01:00
Bofh 1aa7682a91 Create accounts search API for searching local and remote accounts 2022-12-01 01:05:56 +01:00
Bofh 3646579d15 Make new accounts accepted 1 by 1 instead of fetching all 2022-11-28 15:45:55 +01:00
Bofh 2be4a5b655 Add API actions to approve/reject Mastodon accounts + improvements 2022-11-28 00:50:33 +01:00
Bofh 13505f5346 Add API for getting pending users + API base modifications 2022-11-27 21:18:56 +01:00
Bofh 7c940b058d Make instance configuration saveable 2022-11-25 02:09:16 +01:00
Bofh fe42df8105 Add "supported_ap_software" in config/get API 2022-11-23 01:17:50 +01:00
Bofh 3a455d0f16 Modify api to get instances config + gitignore vim 2022-11-22 16:21:24 +01:00
Bofh 741e9994d4 Add http_response_code to "apiresult" function 2022-11-22 11:55:58 +01:00
Bofh a8128d1a00 API to test TCP connections 2022-11-22 11:53:23 +01:00