commit 2176a91
default
·
2022-11-24 11:21:54 +0000 UTC
parent 4494fc3
Fixed hide() to store the object id, not its md5.
1 files changed,
+9,
-2
M
data.c
M
data.c
+9,
-2
1@@ -1097,8 +1097,15 @@ void hide(snac *snac, const char *id)
2 char *p, *v;
3
4 p = chld;
5- while (xs_list_iter(&p, &v))
6- hide(snac, v);
7+ while (xs_list_iter(&p, &v)) {
8+ xs *co = NULL;
9+
10+ /* resolve to get the id */
11+ if (valid_status(object_get_by_md5(v, &co, NULL))) {
12+ if ((v = xs_dict_get(co, "id")) != NULL)
13+ hide(snac, v);
14+ }
15+ }
16 }
17 }
18