Commit Graph

34 Commits

Author SHA1 Message Date
Bofh 5b00931878 Handle errors on search query + Make search work better 2022-12-12 23:18:49 +01:00
Bofh c1b72a6b0a A lot of code cleanup with filedb_* functions 2022-12-12 20:46:06 +01:00
Bofh 5c2d180312 Added RedisDatabase class 2022-12-12 13:51:20 +01:00
Bofh b733893d92 normalize_for_search on words matched in the search 2022-12-11 19:32:50 +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 836dae9c18 Fix bug where all literal "false" was interpreted as true 2022-12-11 17:11:41 +01:00
Bofh cebbdfdf59 Implement expression search on API mastodon/accounts/search 2022-12-11 16:46:41 +01:00
Bofh 72b7948a88 Delete session when session-related user does not exist
ex: if deleted manually on config/users.php
2022-12-10 17:25:03 +01:00
Bofh c0943cfad1 Delete sessions when user is edited/deleted and handle on UI 2022-12-10 17:19:51 +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 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 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 806c5eac1e Fix bug on content cache creation process 2022-12-06 15:31:16 +01:00
Bofh 9f52c87575 Make apimod a method for calling API internally on PHP 2022-12-05 16:48:31 +01:00
Bofh 9a2d4a7f9f Execute filter and implement filter clear/update 2022-12-05 13:35:02 +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 ed2e7c453a Add methods to cache content (for example, on heavy postgres queries) 2022-12-02 16:53:24 +01:00
Bofh 1aa7682a91 Create accounts search API for searching local and remote accounts 2022-12-01 01:05:56 +01:00
Bofh 5c1b1fb329 Allow apiresult to receive a string directly 2022-11-28 16:42:58 +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 fe34262b99 Add Classes to implement PgDatabase 2022-11-24 23:41:05 +01:00
Bofh a56fb308f8 Change data system to save stuff in /var/tmp (configurable later) 2022-11-22 15:25:59 +01:00
Bofh 741e9994d4 Add http_response_code to "apiresult" function 2022-11-22 11:55:58 +01:00
Bofh 0a65457586 Add api/v1 + API to get the instances config 2022-11-22 02:22:58 +01:00
Bofh 7739b27105 Create a very basic login system 2022-11-22 00:57:29 +01:00
Bofh 9c5994a974 initial commit 2022-11-21 23:56:44 +01:00