From cd3ae97fa5397b6c7f2b387ee11fd6bcf06a3baa Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Wed, 2 Mar 2022 16:00:48 +0000 Subject: [PATCH] Boost/repeats FossilOrigin-Name: 2f8bb1aa56b4eb7736eec45b48ddd62e810f6c23e44273f5fea2664fb01fa56f --- src/status.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/status.c b/src/status.c index a22dc61..aa70ae1 100644 --- a/src/status.c +++ b/src/status.c @@ -73,12 +73,14 @@ int try_interact_status(mastodont_t* api, char* id) // Pretty up the type if (strcmp(post.itype, "like") == 0) { - mastodont_favourite_status(api, - id, - &storage); + mastodont_favourite_status(api, id, &storage); // TODO Cleanup when errors handled // mastodont_storage_cleanup(&storage); } + else if (strcmp(post.itype, "repeat") == 0) { + mastodont_reblog_status(api, id, &storage); + // mastodont_storage_cleanup(&storage); + } return 0; }