Commit Graph

85 Commits

Author SHA1 Message Date
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 0c18e53201 Add MAX_JOBS as an env variable too (in cron.php)
* Make "explain" field be added in the cron.php system
2022-12-09 00:37:03 +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 d03220f8cc Change order of content arrangement in #instance/filter-users 2022-12-07 01:41:49 +01:00
Bofh 4b68ae654c Improved UX in paging navigation on account results 2022-12-07 01:26:15 +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 6590a883b1 Add a cronjob block for cleaning old cache "ondemand" content 2022-12-07 00:43:53 +01:00
Bofh 3871171544 Add username to session ID 2022-12-07 00:32:41 +01:00
Bofh 0b69b9f97c Add delete_filter function + UX improvements 2022-12-07 00:13:00 +01:00
Bofh d43b722b2c Make "filter-users" the default screen for #instance 2022-12-07 00:12:32 +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 8af0eaced3 Add title=verified to verified icon 2022-12-06 17:17:09 +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 806c5eac1e Fix bug on content cache creation process 2022-12-06 15:31:16 +01:00
Bofh 0e6aa33f8a Created minimal UI for profiles loaded in filter 2022-12-05 18:52:23 +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 ca8adb33c7 Change textarea placeholder on profile-search-type selector 2022-12-04 00:29:04 +01:00
Bofh d76fa05683 Added filter-users basic template 2022-12-03 18:54:18 +01:00
Bofh d8d2e39a74 Little bug fix 2022-12-03 17:05:38 +01:00
Bofh adeccbc4f1 Various improvements in cron.php 2022-12-03 17:03:23 +01:00
Bofh eb180cdcdf Create cron.php system for executing background jobs
* Adapt PgDatabase class for cron (called by "php cron.php")
2022-12-03 16:49:40 +01:00
Bofh f64bd4bc36 Create cronjob_db system for caching query results in cron.php 2022-12-03 15:59:01 +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 423c5f4567 Make PgDatabase return error 500 when not able to connect 2022-11-29 00:44:44 +01:00
Bofh cc7b06a6c9 Fix a little bug on content flow 2022-11-28 16:52:57 +01:00