Don't collect our own shared inbox.

This commit is contained in:
default 2023-12-19 12:08:06 +01:00
parent dd51da30d8
commit 808849ba14

4
data.c
View file

@ -1842,6 +1842,10 @@ void lastlog_write(snac *snac, const char *source)
void inbox_add(const char *inbox)
/* collects a shared inbox */
{
/* don't collect ourselves */
if (xs_startswith(inbox, srv_baseurl))
return;
xs *md5 = xs_md5_hex(inbox, strlen(inbox));
xs *fn = xs_fmt("%s/inbox/%s", srv_basedir, md5);
FILE *f;