snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit a24b27bf291f1df675e71290c9e839a56543bafb
parent 03251e6fb9c4ba113074a7f353595dc9882d25d1
Author: default <nobody@localhost>
Date:   Fri, 23 Dec 2022 08:05:00 +0100

Don't generate inReplyTo as an empty string.

Diffstat:
Mactivitypub.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activitypub.c b/activitypub.c @@ -599,7 +599,7 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char if (tag == NULL) tag = xs_list_new(); - if (in_reply_to != NULL) { + if (in_reply_to != NULL && *in_reply_to) { xs *p_msg = NULL; /* demand this thing */