Commit graph

18 commits

Author SHA1 Message Date
ThatOneCalculator 36283b9a35
chore: formatting 2023-06-05 16:40:48 -07:00
ThatOneCalculator ad969a28cc
chore: formatting 2023-05-01 20:32:18 -07:00
fruye c3d747e42d Use numeric ids everywhere in mastodon API (#9970)
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9970
Co-authored-by: fruye <fruye@unix.dog>
Co-committed-by: fruye <fruye@unix.dog>
2023-04-30 19:34:52 +00:00
fruye f8178a9535 fix: Get list titles from Form data when creating and updating lists
This change will actually make it possible for Mastodon clients to
create and rename lists, as they send the title in a Form data instead
of a query string.

https://docs.joinmastodon.org/methods/lists/#form-data-parameters
2023-04-27 22:42:10 +02:00
ThatOneCalculator acfc88389a
formatting 2023-03-30 19:10:03 -07:00
ThatOneCalculator 5b575c67ed
fix? 2023-03-24 13:14:41 -07:00
fruye 1239db9ac8 fix: Parse mastoAPI limit argument in more places & Improve converting arguments to boolean (#9716)
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9716
Authored-by: fruye <fruye@unix.dog>
Signed-off-by: Cleo John <waterdev@galaxycrow.de>
Co-authored-by: fruye <fruye@unix.dog>
Co-committed-by: fruye <fruye@unix.dog>
2023-03-17 13:58:01 +00:00
fruye fcbee6d3f5 fix: Run to boolean conversion in mastoAPI public and hashtag timelines
The `only_media` query parameter in `/api/v1/timelines/public` and
`/api/v1/timelines/tag/:hashtag` was previously passed directly as-is to
the Misskey API, which made it pretty upset because it was receiving a
string named 'true' instead of the value 'true'.

Needed for pleromaFE to display a timeline.
2023-03-15 23:09:19 +01:00
Cleo John 05acb51da2 more mastodon work 2023-02-28 17:23:04 +01:00
ThatOneCalculator e9d55ff44b
chore: formatting 2023-02-13 11:17:07 -08:00
cutestnekoaqua 48b53428d0
Revert "parse query stuff with bools"
This reverts commit 4eb695f3c3.
2023-02-13 19:39:14 +01:00
cutestnekoaqua 4eb695f3c3
parse query stuff with bools 2023-02-13 19:34:41 +01:00
cutestnekoaqua 8a69a9c90e
initial bool parsing in mastodon 2023-02-13 18:54:38 +01:00
ThatOneCalculator b30814913f
fix: correct megalodon import 2023-02-11 17:23:30 -08:00
cutestnekoaqua 43c985d78c
fix timelines 2023-02-11 23:12:14 +01:00
ThatOneCalculator fcc59cd35f
chore: Rome Formatting 2023-02-10 15:41:19 -08:00
cutestnekoaqua 8b0e3161a3
migrate middleware usage
Co-authored-by Natty <natty.sh.git@gmail.com>
2023-02-10 23:15:47 +01:00
cutestnekoaqua 717aa899b1
feat: v1 Mastodon API
This commit adds (maybe unstable) support for Mastodons v1 api
also some v2 endpoints, maybe I miss stuff, I dont know.
We will need to test this but it should be kinda stable
and work like (old) butter.

Co-authored-by: Natty <natty.sh.git@gmail.com>
Co-authored-by: cutls <web-pro@cutls.com>
2023-02-09 23:21:50 +01:00