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
b22b5bbefa
ensure the relay can run on python >= 3.10
2024-07-03 00:59:59 -04:00
Izalia Mae
5217516c8a
move Self imports to typing block
2024-06-25 16:54:04 -04:00
Izalia Mae
15882f3e49
fix linter issues
2024-06-14 15:05:55 -04:00
Izalia Mae
0d50215fc1
add missing AP routes
...
Adds routes for "/outbox", "/following", and "/followers"
2024-06-12 13:23:53 -04:00
Izalia Mae
bd50baa639
re-initialize Application in push workers for windows
2024-04-02 15:18:31 -04:00
Izalia Mae
2bb44d8e37
use typing_extensions module for python < 3.11
2024-03-31 11:51:48 -04:00
Izalia Mae
beb9d9c3e5
add web manifest to frontend
2024-03-28 07:12:27 -04:00
Izalia Mae
6112734b2f
update aputils to 0.1.9
2024-03-22 03:24:23 -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
e6831f04eb
create admin instances page
2024-03-02 19:58:06 -05:00
Izalia Mae
7af3b9c20b
add login/logout and start on admin interface
2024-03-02 17:36:44 -05:00
Izalia Mae
6a891ccf89
simplify aputils imports
2024-02-23 20:58:24 -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
26c5c05320
create get_resource method
2024-02-22 17:54:15 -05:00
Izalia Mae
a2ae1bdd21
return correct types for api
2024-02-20 19:22:18 -05:00
Izalia Mae
af1caaf7c9
remove status code from json error message
2024-02-16 10:42:22 -05:00
Izalia Mae
aca34825b1
remove unused imports
2024-02-15 22:05:22 -05:00
Izalia Mae
097f3bc896
Add API endpoints for relay management
2024-02-14 20:29:30 +00:00
Izalia Mae
bec5d5f207
use gunicorn to start the server
2024-02-05 13:15:08 -05:00
Izalia Mae
02ac1fa53b
make sure db connection for request is open
2024-02-04 05:17:51 -05:00
Izalia Mae
2fcaea85ae
create a new database connection for each request
2024-02-04 04:53:39 -05:00
Izalia Mae
2d641ea183
add database and redis caching
2024-01-31 21:23:45 -05:00
Izalia Mae
85a4797e68
make sure bool(Response) returns True
2024-01-24 19:24:27 -05: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
Izalia Mae
2ebb295be1
handle TypeError in Message.object_id
2024-01-16 00:33:05 -05:00
Izalia Mae
9bf45a54d1
add annotations and fix linter warnings
2024-01-14 14:13:06 -05:00
Izalia Mae
3005e9b370
use format strings for logging
2024-01-10 10:49:43 -05:00
Izalia Mae
4feaccaa53
use View class and make Message a subclass of aputils.message.Message
2024-01-09 23:15:04 -05:00
Izalia Mae
b0851c0652
remove http_debug
2022-12-04 01:15:28 -05:00
Izalia Mae
d5b9053f71
replace various classes with aputils classes
2022-12-02 00:50:57 -05:00
Izalia Mae
1a7abb4ecb
fix distill_inboxes
2022-11-29 17:41:04 -05:00
Izalia Mae
5d01211a34
add aputils module for hs2019 support
2022-11-26 22:16:14 -05:00
Izalia Mae
b85b4ab80b
create HttpClient class to avoid creating a new session every request
2022-11-26 18:56:34 -05:00
Izalia Mae
8541f63762
add timeout option to misc.request
2022-11-24 16:01:23 -05:00
Izalia Mae
da56d4bb61
add extra logging in misc.request
2022-11-22 18:11:41 -05:00
Izalia Mae
c96640bfd7
add config cli commands
2022-11-20 06:14:37 -05:00
Izalia Mae
d4955828d4
return Nodeinfo object from fetch_nodeinfo
2022-11-18 13:45:26 -05:00
Izalia Mae
d08bd6625a
use signature keyid instead of object actor to fetch actor
2022-11-17 16:30:56 -05:00
Jeong Arm
e6d7c60a5a
Fix Response.new_error
2022-11-13 15:00:53 +09:00
Izalia Mae
3305a25da4
create View class and fix Response.new_error
2022-11-10 12:40:48 -05:00
Izalia Mae
ff95a3033d
create Response class
2022-11-09 05:58:35 -05:00
Izalia Mae
0b9281bec1
make sure sub-dicts in DotDict are DotDict objects
2022-11-09 04:35:57 -05:00
Izalia Mae
b275b7cd0b
remove (un)follow_remote_actor
2022-11-07 09:53:04 -05:00
Izalia Mae
58ebefa3bd
fix WKNodeinfo.get_url
2022-11-07 08:24:03 -05:00
Izalia Mae
e3bf4258aa
create WKNodeinfo class and add nodeinfo 2.1 path
2022-11-07 08:18:25 -05:00