commit 90ee416
default
·
2024-04-10 15:21:58 +0000 UTC
parent abb4f16
Changed admiration message ids from dummy ones to having an md5 of the object.
1 files changed,
+3,
-1
+3,
-1
1@@ -1149,8 +1149,10 @@ xs_dict *msg_admiration(snac *snac, char *object, char *type)
2
3 if (valid_status(object_get(object, &a_msg))) {
4 xs *rcpts = xs_list_new();
5+ xs *o_md5 = xs_md5_hex(object, strlen(object));
6+ xs *id = xs_fmt("%s/%s/%s", snac->actor, *type == 'L' ? "l" : "a", o_md5);
7
8- msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
9+ msg = msg_base(snac, type, id, snac->actor, "@now", object);
10
11 if (is_msg_public(a_msg))
12 rcpts = xs_list_append(rcpts, public_address);