Add Mastodon bot to Ticketfrei 3 #2

Merged
missytake merged 32 commits from mastodon into development 2023-03-19 19:31:03 +00:00

32 commits

Author SHA1 Message Date
missytake 64715f5aa5 [mastodon] Also dismiss notifications which have no status 2023-03-19 20:29:25 +01:00
missytake f7d9baa8a3 [mastodon] Fix: boosting public toots instead of posting them as own 2023-03-19 20:27:48 +01:00
missytake 0504d3083f [mastodon] Fix load order of API routers 2023-03-19 19:20:09 +01:00
ogdbd3h5qze42igcv8wcrqk3 ec0abb5e24 [frontend] Add initial mastodon frontend 2023-03-19 18:36:15 +01:00
ogdbd3h5qze42igcv8wcrqk3 d897f369f7 [mastodon] Fix delete endpoint for mastodon 2023-03-19 18:36:15 +01:00
ogdbd3h5qze42igcv8wcrqk3 9c7607b7ca [frontend] Regenerate openapi for frontend due to mastodon API changes 2023-03-19 18:36:15 +01:00
missytake 0f4b25fcde [tests] Make Mastodon tests a bit more readable 2023-03-19 18:36:15 +01:00
missytake 4f96dfbee7 [mastodon] Deprecate GET mastodon route 2023-03-19 18:36:15 +01:00
missytake afd0894952 [mastodon] Return instance name in read_public API 2023-03-19 18:36:15 +01:00
missytake f0757619a7 [tests] Test mastodon_read route 2023-03-19 18:36:15 +01:00
missytake 90469a052a [tests] Replace single quotes with double quotes 2023-03-19 18:36:15 +01:00
missytake 16c325a9cb [tests] Test mastodon_delete route 2023-03-19 18:36:15 +01:00
missytake b49c4767a0 [mastodon] Remove redundant error class 2023-03-19 18:36:15 +01:00
missytake a61c48e99e [mastodon] Fix tests 2023-03-19 18:36:15 +01:00
ogdbd3h5qze42igcv8wcrqk3 dfd17aa27c [mastodon] Fix locking issue with synchronous Mastodon.py and replace last_seen with notification_dismiss 2023-03-19 18:36:15 +01:00
ogdbd3h5qze42igcv8wcrqk3 66fff6fd7d [frontend] Fix openapi-generator run for mastodon 2023-03-19 18:36:15 +01:00
missytake a548c2febc [tests] Testing the mastodon_create API endpoint 2023-03-19 18:36:15 +01:00
missytake f533efee4f [mastodon] Return 422 error for invalid input when creating mastodon bot 2023-03-19 18:36:15 +01:00
missytake cb88c24e2e [mastodon] Change mastodon_create to accept json instead of URL parameters 2023-03-19 18:36:15 +01:00
missytake 36638b1c64 [mastodon] New style: double quotes instead of single quotes 2023-03-19 18:36:15 +01:00
missytake 7fd716cecc [misc] Added pytest and pytest-aiohttp to test dependencies 2023-03-19 18:36:15 +01:00
missytake 3d482dd5f5 [mastodon] Generated openAPI routes for frontend 2023-03-19 18:36:15 +01:00
missytake fb1e88ab03 [mastodon] Moved mastodon module to new backend directory 2023-03-19 18:36:15 +01:00
missytake 5fa5a9f48e Revert "[doc] Document how to disable strict CORS checking"
This reverts commit bd17d5321b.
2023-03-19 18:36:15 +01:00
missytake 9704ed4ddf [mastodon] Working now: toot reports from mastodon, but only when the next report arrives 2023-03-19 18:36:15 +01:00
missytake 12935b79cb [mastodon] Load database references 2023-03-19 18:36:15 +01:00
missytake 37f7b98c67 [mastodon] Import mastodon API correctly 2023-03-19 18:36:12 +01:00
missytake d120d718f9 [mastodon] Added a TODO flair 2023-03-19 18:34:57 +01:00
missytake b1f8c08d25 [mastodon] Some web routes to add a Mastodon Account to Ticketfrei 2023-03-19 18:34:57 +01:00
missytake 4dc4b9cfca [mastodon] Changed MastodonAccount column: instance_id -> instance 2023-03-19 18:34:57 +01:00
missytake 07bc5a2686 [mastodon] First approach to a mastodon bot 2023-03-19 18:34:57 +01:00
missytake 3ae4a08ad5 [doc] Document how to disable strict CORS checking 2023-03-19 18:34:57 +01:00