mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Changed admiration message ids from dummy ones to having an md5 of the object.
This commit is contained in:
parent
abb4f16c71
commit
90ee416bf8
1 changed files with 3 additions and 1 deletions
|
@ -1149,8 +1149,10 @@ xs_dict *msg_admiration(snac *snac, char *object, char *type)
|
|||
|
||||
if (valid_status(object_get(object, &a_msg))) {
|
||||
xs *rcpts = xs_list_new();
|
||||
xs *o_md5 = xs_md5_hex(object, strlen(object));
|
||||
xs *id = xs_fmt("%s/%s/%s", snac->actor, *type == 'L' ? "l" : "a", o_md5);
|
||||
|
||||
msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object);
|
||||
msg = msg_base(snac, type, id, snac->actor, "@now", object);
|
||||
|
||||
if (is_msg_public(a_msg))
|
||||
rcpts = xs_list_append(rcpts, public_address);
|
||||
|
|
Loading…
Reference in a new issue