aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastoapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 27c476e..2c86ff9 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1134,9 +1134,15 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
bst = xs_dict_set(bst, "content", "");
bst = xs_dict_set(bst, "reblog", st);
+ /* reblogs must have their own id */
+ xs *b_id = xs_fmt("%s%s", xs_dict_get(st, "id"), boosted_by_md5);
+ bst = xs_dict_set(bst, "id", b_id);
+
xs_free(st);
st = bst;
}
+ else
+ xs_free(bst);
}
return st;