From 28366b6f67519fa97e0f18f6be9699ad66aae953 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Fri, 1 Apr 2022 15:05:04 +0000 Subject: [PATCH] Bookmark, mute, pin FossilOrigin-Name: 44c17fa5a26634dd61c9ba15b4ca1e59705e26ca7898dd895c0a932a5c0d792b --- src/status.c | 12 ++++++++++++ static/status.html | 21 ++++++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/status.c b/src/status.c index 6d898f7..59733c9 100644 --- a/src/status.c +++ b/src/status.c @@ -87,10 +87,22 @@ int try_interact_status(struct session* ssn, mastodont_t* api, char* id) mastodont_favourite_status(api, id, &storage, NULL); else if (strcmp(ssn->post.itype, "repeat") == 0) mastodont_reblog_status(api, id, &storage, NULL); + else if (strcmp(ssn->post.itype, "bookmark") == 0) + mastodont_bookmark_status(api, id, &storage, NULL); + else if (strcmp(ssn->post.itype, "pin") == 0) + mastodont_pin_status(api, id, &storage, NULL); + else if (strcmp(ssn->post.itype, "mute") == 0) + mastodont_mute_conversation(api, id, &storage, NULL); else if (strcmp(ssn->post.itype, "unlike") == 0) mastodont_unfavourite_status(api, id, &storage, NULL); else if (strcmp(ssn->post.itype, "unrepeat") == 0) mastodont_unreblog_status(api, id, &storage, NULL); + else if (strcmp(ssn->post.itype, "unbookmark") == 0) + mastodont_unbookmark_status(api, id, &storage, NULL); + else if (strcmp(ssn->post.itype, "unpin") == 0) + mastodont_unpin_status(api, id, &storage, NULL); + else if (strcmp(ssn->post.itype, "unmute") == 0) + mastodont_unmute_conversation(api, id, &storage, NULL); mastodont_storage_cleanup(&storage); diff --git a/static/status.html b/static/status.html index 5bfb40c..4689c11 100644 --- a/static/status.html +++ b/static/status.html @@ -15,9 +15,24 @@ %s