Commit graph

31 commits

Author SHA1 Message Date
Izalia Mae
e85215d986 split manage.py and multiple small changes
* add `typing-extensions` dev dependency
* make sure `Self` import falls back to `typing-extensions`
* let setuptools find sub-packages
* pass global `Application` instance to cli commands
* move `RELAY_SOFTWARE` to relay/misc.py
* allow `str` for `follow` in `Message.new_unfollow`
2025-02-12 14:48:02 -05:00
Izalia Mae
ff275a5ba4 fix linter warnings 2025-02-11 12:26:57 -05:00
Izalia Mae
ade36d6e69 add buzzrelay to RELAY_SOFTWARE list 2025-01-29 06:11:25 -05:00
Izalia Mae
338fd26688 replace single quotes with double quotes 2024-11-28 07:09:53 -05:00
Izalia Mae
a25df0ccc4 rework api endpoints 2024-10-13 17:30:12 -04:00
Izalia Mae
f192f1c35c improve switch-backend command 2024-09-28 09:41:25 -04:00
Izalia Mae
0d24aea764 replace misc functions 2024-09-18 07:13:44 -04:00
Izalia Mae
0e89b9bb11 include token in /api/v1/login response 2024-09-14 20:38:03 -04:00
Izalia Mae
c54aeabc90 fix postgres support 2024-09-14 05:56:27 -04:00
Izalia Mae
cff3bc30b8 ensure log level for workers gets updated 2024-08-26 22:23:04 -04:00
Izalia Mae
9f5df5f95c update swagger docs 2024-07-04 22:58:50 -04:00
Izalia Mae
773922e263 remove tokens table and fix auth handling 2024-07-04 22:00:54 -04:00
Izalia Mae
f98ca54ab7 various changes
* Add oauth login support
* Add `HttpError` class
* Add custom error handling
* Use `blib.Date` class for (de)serializing db timestamp values
* Add `db-maintenance` command
* Rework middleware route checking
* Fix fetching post data in api endpoints
2024-07-04 20:36:04 -04:00
Izalia Mae
bdc7d41d7a update barkshark-sql to 0.2.0-rc1 and create row classes 2024-06-25 16:02:49 -04:00
Izalia Mae
9a3e3768e7 modify workers
* move all worker-related classes and functions to workers.py
* change the log level in worker processes
* create QueueItem and PostItem classes
2024-06-19 12:59:08 -04:00
Izalia Mae
15882f3e49 fix linter issues 2024-06-14 15:05:55 -04:00
Izalia Mae
c200c295e7 ensure config key is formatted properly 2024-03-31 18:23:35 -04:00
Izalia Mae
e700f9baa2 use right algorithm for inbox pushes
* return instance rows from distill_inboxes
* pass the row of the instance being POSTed to the instance parameter of HttpClient.post
2024-03-27 12:48:22 -04:00
Izalia Mae
6112734b2f update aputils to 0.1.9 2024-03-22 03:24:23 -04:00
Izalia Mae
a6f1738b73 fix user updating 2024-03-16 06:11:47 -04:00
Izalia Mae
5c210dc20f fix linting issues 2024-03-16 01:36:20 -04:00
Izalia Mae
1ffc609058 add user management api endpoints and allow cookie for api auth 2024-03-15 06:46:31 -04:00
Izalia Mae
9fe6d8ad96 replace pylint with mypy and other minor changes
* ignore test*.py files
* format requirements.txt to be more readable
* only show note on home page if it is set
* allow flake8 to check for more than just unused imports
* remove a bunch of unused methods in `compat.RelayDatabase`
* turn `Config` into a dataclass
* replace database config methods with `RelayData` dataclass
* rename `loads` to `cls` in `HttpClient.get`
2024-03-13 17:43:57 -04:00
Izalia Mae
c852867636 add option to require approval for new instances 2024-03-11 01:21:46 -04:00
Izalia Mae
2a866eaaaa create admin domain bans page 2024-03-03 03:03:32 -05:00
Izalia Mae
6f03e2ad4c fix linter issues 2024-02-23 20:04:31 -05:00
Izalia Mae
a08d1c9612 use jinja for web pages 2024-02-23 19:19:44 -05:00
Izalia Mae
93797b639e Replace tinysql 2024-02-21 00:00:21 +00:00
Izalia Mae
097f3bc896 Add API endpoints for relay management 2024-02-14 20:29:30 +00:00
Izalia Mae
7a9d346642 fix linter warnings 2024-01-23 21:54:58 -05:00
Izalia Mae
5f6aef1871 use postgresql/sqlite for database backend 2024-01-22 05:32:16 -05:00