Преглед изворни кода

Ensure the outbox does not include non-public posts.

grunfink пре 11 месеци
родитељ
комит
cdd74c8d41
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      activitypub.c

+ 4 - 2
activitypub.c

@@ -3516,8 +3516,10 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
                 const char *id   = xs_dict_get(i, "id");
 
                 if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor)) {
-                    xs *c_msg = msg_create(&snac, i);
-                    list = xs_list_append(list, c_msg);
+                    if (is_msg_public(i)) {
+                        xs *c_msg = msg_create(&snac, i);
+                        list = xs_list_append(list, c_msg);
+                    }
                 }
             }
         }