From dba063066025d8feed0e18dde91037c9bb503d53 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 12 Apr 2024 05:28:34 +0200 Subject: [PATCH] Commented out received unboosts (see code for an explanation). --- activitypub.c | 7 ++++++- data.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/activitypub.c b/activitypub.c index d75bbdd..526302a 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1962,7 +1962,12 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) } else if (strcmp(utype, "Announce") == 0) { /** **/ - int status = object_unadmire(id, actor, 0); + int status = 200; + + /* commented out: if a followed user boosts something that + is requested and then unboosts, the post remains here, + but with no apparent reason, and that is confusing */ + //status = object_unadmire(id, actor, 0); snac_log(snac, xs_fmt("Unboost for %s %d", id, status)); } diff --git a/data.c b/data.c index 688813f..b6aa9cf 100644 --- a/data.c +++ b/data.c @@ -406,7 +406,7 @@ int index_del_md5(const char *fn, const char *md5) fclose(f); } else - status = 500; + status = 410; pthread_mutex_unlock(&data_mutex);