diff options
| author | 2024-04-12 05:28:34 +0200 | |
|---|---|---|
| committer | 2024-04-12 05:28:34 +0200 | |
| commit | dba063066025d8feed0e18dde91037c9bb503d53 (patch) | |
| tree | f959eeb4955f2c356950802a4cd90df67ec2c574 | |
| parent | In object_unadmire(), don't call index_gc() if index_del() did nothing. (diff) | |
| download | snac2-dba063066025d8feed0e18dde91037c9bb503d53.tar.gz snac2-dba063066025d8feed0e18dde91037c9bb503d53.tar.xz snac2-dba063066025d8feed0e18dde91037c9bb503d53.zip | |
Commented out received unboosts (see code for an explanation).
| -rw-r--r-- | activitypub.c | 7 | ||||
| -rw-r--r-- | 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) | |||
| 1962 | } | 1962 | } |
| 1963 | else | 1963 | else |
| 1964 | if (strcmp(utype, "Announce") == 0) { /** **/ | 1964 | if (strcmp(utype, "Announce") == 0) { /** **/ |
| 1965 | int status = object_unadmire(id, actor, 0); | 1965 | int status = 200; |
| 1966 | |||
| 1967 | /* commented out: if a followed user boosts something that | ||
| 1968 | is requested and then unboosts, the post remains here, | ||
| 1969 | but with no apparent reason, and that is confusing */ | ||
| 1970 | //status = object_unadmire(id, actor, 0); | ||
| 1966 | 1971 | ||
| 1967 | snac_log(snac, xs_fmt("Unboost for %s %d", id, status)); | 1972 | snac_log(snac, xs_fmt("Unboost for %s %d", id, status)); |
| 1968 | } | 1973 | } |
| @@ -406,7 +406,7 @@ int index_del_md5(const char *fn, const char *md5) | |||
| 406 | fclose(f); | 406 | fclose(f); |
| 407 | } | 407 | } |
| 408 | else | 408 | else |
| 409 | status = 500; | 409 | status = 410; |
| 410 | 410 | ||
| 411 | pthread_mutex_unlock(&data_mutex); | 411 | pthread_mutex_unlock(&data_mutex); |
| 412 | 412 | ||