mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Drop replies to hidden posts.
This commit is contained in:
parent
b95d4d7518
commit
22cc5f42a5
1 changed files with 14 additions and 9 deletions
|
@ -1577,6 +1577,10 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
char *in_reply_to = xs_dict_get(object, "inReplyTo");
|
||||
xs *wrk = NULL;
|
||||
|
||||
if (!xs_is_null(in_reply_to) && is_hidden(snac, in_reply_to)) {
|
||||
snac_debug(snac, 0, xs_fmt("dropped reply %s to hidden post %s", id, in_reply_to));
|
||||
}
|
||||
else {
|
||||
timeline_request(snac, &in_reply_to, &wrk, 0);
|
||||
|
||||
if (timeline_add(snac, id, object)) {
|
||||
|
@ -1590,6 +1594,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
if (!xs_is_null(name) && *name && !xs_is_null(in_reply_to) && *in_reply_to)
|
||||
update_question(snac, in_reply_to);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (strcmp(utype, "Question") == 0) { /** **/
|
||||
char *id = xs_dict_get(object, "id");
|
||||
|
|
Loading…
Reference in a new issue