commit dba0630
default
·
2024-04-12 03:28:34 +0000 UTC
parent a7bd9b6
Commented out received unboosts (see code for an explanation).
2 files changed,
+7,
-2
M
data.c
+6,
-1
1@@ -1962,7 +1962,12 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
2 }
3 else
4 if (strcmp(utype, "Announce") == 0) { /** **/
5- int status = object_unadmire(id, actor, 0);
6+ int status = 200;
7+
8+ /* commented out: if a followed user boosts something that
9+ is requested and then unboosts, the post remains here,
10+ but with no apparent reason, and that is confusing */
11+ //status = object_unadmire(id, actor, 0);
12
13 snac_log(snac, xs_fmt("Unboost for %s %d", id, status));
14 }
M
data.c
+1,
-1
1@@ -406,7 +406,7 @@ int index_del_md5(const char *fn, const char *md5)
2 fclose(f);
3 }
4 else
5- status = 500;
6+ status = 410;
7
8 pthread_mutex_unlock(&data_mutex);
9