Kaynağa Gözat

Don't send public admirations of non-public messages.

default 3 yıl önce
ebeveyn
işleme
751211684f
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      activitypub.c

+ 3 - 1
activitypub.c

@@ -471,7 +471,9 @@ d_char *msg_admiration(snac *snac, char *object, char *type)
 
 
         msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
         msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
 
 
-        rcpts = xs_list_append(rcpts, public_address);
+        if (is_msg_public(snac, a_msg))
+            rcpts = xs_list_append(rcpts, public_address);
+
         rcpts = xs_list_append(rcpts, xs_dict_get(a_msg, "attributedTo"));
         rcpts = xs_list_append(rcpts, xs_dict_get(a_msg, "attributedTo"));
 
 
         msg = xs_dict_append(msg, "to", rcpts);
         msg = xs_dict_append(msg, "to", rcpts);