commit e5a0a58

grunfink  ·  2026-09-30 05:25:59 +0000 UTC
parent decdded
In html_entry(), get children from the object storage instead of the timeline.
1 files changed,  +2, -8
M html.c
M html.c
+2, -8
 1@@ -3382,10 +3382,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
 2             xs_list_next(children, &cmd5, &ctxt);
 3             xs *f_chd = NULL;
 4 
 5-            if (user)
 6-                timeline_get_by_md5(user, cmd5, &f_chd);
 7-            else
 8-                object_get_by_md5(cmd5, &f_chd);
 9+            object_get_by_md5(cmd5, &f_chd);
10 
11             if (f_chd != NULL && xs_is_null(xs_dict_get(f_chd, "name"))) {
12                 const char *p_author = get_atto(msg);
13@@ -3410,10 +3407,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
14             while (xs_list_next(children, &cmd5, &ctxt)) {
15                 xs *chd = NULL;
16 
17-                if (user)
18-                    timeline_get_by_md5(user, cmd5, &chd);
19-                else
20-                    object_get_by_md5(cmd5, &chd);
21+                object_get_by_md5(cmd5, &chd);
22 
23                 if (chd != NULL) {
24                     if (xs_is_null(xs_dict_get(chd, "name"))) {