diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index df78854..c88b0ce 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1149,8 +1149,10 @@ xs_dict *msg_admiration(snac *snac, char *object, char *type) | |||
| 1149 | 1149 | ||
| 1150 | if (valid_status(object_get(object, &a_msg))) { | 1150 | if (valid_status(object_get(object, &a_msg))) { |
| 1151 | xs *rcpts = xs_list_new(); | 1151 | xs *rcpts = xs_list_new(); |
| 1152 | xs *o_md5 = xs_md5_hex(object, strlen(object)); | ||
| 1153 | xs *id = xs_fmt("%s/%s/%s", snac->actor, *type == 'L' ? "l" : "a", o_md5); | ||
| 1152 | 1154 | ||
| 1153 | msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object); | 1155 | msg = msg_base(snac, type, id, snac->actor, "@now", object); |
| 1154 | 1156 | ||
| 1155 | if (is_msg_public(a_msg)) | 1157 | if (is_msg_public(a_msg)) |
| 1156 | rcpts = xs_list_append(rcpts, public_address); | 1158 | rcpts = xs_list_append(rcpts, public_address); |