From 963f2cf79a48ae311c6133ca96ddbcb9a985a07d Mon Sep 17 00:00:00 2001 From: default Date: Thu, 13 Apr 2023 06:38:05 +0200 Subject: [PATCH] Updated RELEASE_NOTES. --- RELEASE_NOTES.md | 2 +- mastoapi.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index c8ca7e9..0703c55 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,7 +2,7 @@ ## 2.27 -Started Mastodon API support, so you can use Mastodon-compatible apps to access #snac accounts. What works so far: login, private and public timelines, full post information (replies and ancestors), liking and boosting posts. Things that don't work yet but eventually will: posting and replying to messages (I still have to figure out how some things work, like posting images), notifications (needs some internal support), the instance timeline (snac does not have one, but it can be simulated with not much effort) and probably many other things. Things that will never work: bookmarks, pinning, a federated timeline, many other things that I don't remember right now. Please note that if you want to use this API in your instance, you must add some lines to your HTTP proxy configuration, see the snac(8) (administrator documentation) manual page. I'm doing my tests using the #Tusky, #AndStatus, #Fedilab and #Husky Android apps. Success or failure reports will be appreciated. +Started Mastodon API support, so you can use Mastodon-compatible apps to access #snac accounts. What works so far: login, private and public timelines, full post information (replies and ancestors), liking and boosting posts. Things that don't work yet but eventually will: following accounts, posting and replying to messages (I still have to figure out how some things work, like posting images), notifications (needs some internal support), the instance timeline (snac does not have one, but it can be simulated with not much effort) and probably many other things. Things that will never work: bookmarks, pinning, a federated timeline, many other things that I don't remember right now. Please note that if you want to use this API in your instance, you must add some lines to your HTTP proxy configuration, see the snac(8) (administrator documentation) manual page. I'm doing my tests using the #Tusky, #AndStatus, #Fedilab and #Husky Android apps. Success or failure reports will be appreciated. Fixed some buffer overflows (contributed by Saagar Jha). diff --git a/mastoapi.c b/mastoapi.c index 9e9b572..ba42912 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -1039,6 +1039,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, } } } + else + if (strcmp(cmd, "/filters") == 0) { + *body = xs_dup("[]"); + *ctype = "application/json"; + status = 200; + } /* user cleanup */ if (logged_in)