summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 54099db..6f93098 100644
--- a/data.c
+++ b/data.c
@@ -762,7 +762,7 @@ int _object_add(const char *id, const xs_dict *obj, int ow)
762 fclose(f); 762 fclose(f);
763 763
764 /* does this object has a parent? */ 764 /* does this object has a parent? */
765 const char *in_reply_to = xs_dict_get(obj, "inReplyTo"); 765 const char *in_reply_to = get_in_reply_to(obj);
766 766
767 if (!xs_is_null(in_reply_to) && *in_reply_to) { 767 if (!xs_is_null(in_reply_to) && *in_reply_to) {
768 /* update the children index of the parent */ 768 /* update the children index of the parent */