commit ea94a479f115b4c8f2bde96ea18448d61149a207
parent 6acf906b646a065f8876565821c959fe8bafa424
Author: default <nobody@localhost>
Date: Thu, 24 Nov 2022 09:31:58 +0100
Stop dropping messages with hidden parents.
Diffstat:
1 file changed, 0 insertions(+), 11 deletions(-)
diff --git a/data.c b/data.c
@@ -696,22 +696,11 @@ int _timeline_write(snac *snac, char *id, char *msg, char *parent, char *referre
if (pfn != NULL && (f = fopen(pfn, "r")) != NULL) {
xs *j;
- char *v;
j = xs_readall(f);
fclose(f);
p_msg = xs_json_loads(j);
-
- if ((v = xs_dict_get(p_msg, "_snac")) != NULL) {
- /* is parent hidden? */
- if ((v = xs_dict_get(v, "hidden")) && xs_type(v) == XSTYPE_TRUE) {
- snac_debug(snac, 1,
- xs_fmt("_timeline_write dropping due to hidden parent %s (%s)", id, parent));
-
- return 0;
- }
- }
}
}