summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastoapi.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 5755ad7..e1d0c9d 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -763,50 +763,56 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
763 } 763 }
764 else 764 else
765 if (strcmp(cmd, "/filters") == 0) { 765 if (strcmp(cmd, "/filters") == 0) {
766 /* TBD */ 766 /* snac will never have filters */
767 *body = xs_dup("[]"); 767 *body = xs_dup("[]");
768 *ctype = "application/json"; 768 *ctype = "application/json";
769 status = 200; 769 status = 200;
770 } 770 }
771 else 771 else
772 if (strcmp(cmd, "/favourites") == 0) { 772 if (strcmp(cmd, "/favourites") == 0) {
773 /* TBD */ 773 /* snac will never support a list of favourites */
774 *body = xs_dup("[]"); 774 *body = xs_dup("[]");
775 *ctype = "application/json"; 775 *ctype = "application/json";
776 status = 200; 776 status = 200;
777 } 777 }
778 else 778 else
779 if (strcmp(cmd, "/bookmarks") == 0) { 779 if (strcmp(cmd, "/bookmarks") == 0) {
780 /* snac does not support bookmarks */
780 *body = xs_dup("[]"); 781 *body = xs_dup("[]");
781 *ctype = "application/json"; 782 *ctype = "application/json";
782 status = 200; 783 status = 200;
783 } 784 }
784 else 785 else
785 if (strcmp(cmd, "/lists") == 0) { 786 if (strcmp(cmd, "/lists") == 0) {
787 /* snac does not support lists */
786 *body = xs_dup("[]"); 788 *body = xs_dup("[]");
787 *ctype = "application/json"; 789 *ctype = "application/json";
788 status = 200; 790 status = 200;
789 } 791 }
790 else 792 else
791 if (strcmp(cmd, "/scheduled_statuses") == 0) { 793 if (strcmp(cmd, "/scheduled_statuses") == 0) {
794 /* snac does not scheduled notes */
792 *body = xs_dup("[]"); 795 *body = xs_dup("[]");
793 *ctype = "application/json"; 796 *ctype = "application/json";
794 status = 200; 797 status = 200;
795 } 798 }
796 else 799 else
797 if (strcmp(cmd, "/follow_requests") == 0) { 800 if (strcmp(cmd, "/follow_requests") == 0) {
801 /* snac does not support optional follow confirmations */
798 *body = xs_dup("[]"); 802 *body = xs_dup("[]");
799 *ctype = "application/json"; 803 *ctype = "application/json";
800 status = 200; 804 status = 200;
801 } 805 }
802 else 806 else
803 if (strcmp(cmd, "/announcements") == 0) { 807 if (strcmp(cmd, "/announcements") == 0) {
808 /* snac has no announcements (yet?) */
804 *body = xs_dup("[]"); 809 *body = xs_dup("[]");
805 *ctype = "application/json"; 810 *ctype = "application/json";
806 status = 200; 811 status = 200;
807 } 812 }
808 else 813 else
809 if (strcmp(cmd, "/custom_emojis") == 0) { 814 if (strcmp(cmd, "/custom_emojis") == 0) {
815 /* are you kidding me? */
810 *body = xs_dup("[]"); 816 *body = xs_dup("[]");
811 *ctype = "application/json"; 817 *ctype = "application/json";
812 status = 200; 818 status = 200;