Просмотр исходного кода

Commented out received unboosts (see code for an explanation).

default 2 лет назад
Родитель
Сommit
dba0630660
2 измененных файлов с 7 добавлено и 2 удалено
  1. 6 1
      activitypub.c
  2. 1 1
      data.c

+ 6 - 1
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));
         }

+ 1 - 1
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);