summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-04-11 20:10:24 +0200
committerGravatar default2023-04-11 20:10:24 +0200
commita7f3ba602768e39e2d55ae0329b38538edc5fa2c (patch)
treeab447132e1eacd39d898639bd744710dc2f41d6e
parentAdded support for statuses/:id and statuses/:id/context. (diff)
downloadpenes-snac2-a7f3ba602768e39e2d55ae0329b38538edc5fa2c.tar.gz
penes-snac2-a7f3ba602768e39e2d55ae0329b38538edc5fa2c.tar.xz
penes-snac2-a7f3ba602768e39e2d55ae0329b38538edc5fa2c.zip
Added many dummy lists.
-rw-r--r--mastoapi.c70
1 files changed, 69 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index c846223..5755ad7 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -741,7 +741,75 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
741 } 741 }
742 else 742 else
743 if (strcmp(cmd, "/timelines/public") == 0) { 743 if (strcmp(cmd, "/timelines/public") == 0) {
744 /* the public timeline */ 744 /* the public timeline (public timelines for all users) */
745 /* TBD */
746 *body = xs_dup("[]");
747 *ctype = "application/json";
748 status = 200;
749 }
750 else
751 if (strcmp(cmd, "/conversations") == 0) {
752 /* TBD */
753 *body = xs_dup("[]");
754 *ctype = "application/json";
755 status = 200;
756 }
757 else
758 if (strcmp(cmd, "/notifications") == 0) {
759 /* TBD */
760 *body = xs_dup("[]");
761 *ctype = "application/json";
762 status = 200;
763 }
764 else
765 if (strcmp(cmd, "/filters") == 0) {
766 /* TBD */
767 *body = xs_dup("[]");
768 *ctype = "application/json";
769 status = 200;
770 }
771 else
772 if (strcmp(cmd, "/favourites") == 0) {
773 /* TBD */
774 *body = xs_dup("[]");
775 *ctype = "application/json";
776 status = 200;
777 }
778 else
779 if (strcmp(cmd, "/bookmarks") == 0) {
780 *body = xs_dup("[]");
781 *ctype = "application/json";
782 status = 200;
783 }
784 else
785 if (strcmp(cmd, "/lists") == 0) {
786 *body = xs_dup("[]");
787 *ctype = "application/json";
788 status = 200;
789 }
790 else
791 if (strcmp(cmd, "/scheduled_statuses") == 0) {
792 *body = xs_dup("[]");
793 *ctype = "application/json";
794 status = 200;
795 }
796 else
797 if (strcmp(cmd, "/follow_requests") == 0) {
798 *body = xs_dup("[]");
799 *ctype = "application/json";
800 status = 200;
801 }
802 else
803 if (strcmp(cmd, "/announcements") == 0) {
804 *body = xs_dup("[]");
805 *ctype = "application/json";
806 status = 200;
807 }
808 else
809 if (strcmp(cmd, "/custom_emojis") == 0) {
810 *body = xs_dup("[]");
811 *ctype = "application/json";
812 status = 200;
745 } 813 }
746 else 814 else
747 if (strcmp(cmd, "/instance") == 0) { 815 if (strcmp(cmd, "/instance") == 0) {