commit 808849ba149fc2ccb579589c0d2f40351af3c777
parent dd51da30d8aa1dae9e9aa7ae8baaee88a3e3ac3a
Author: default <nobody@localhost>
Date: Tue, 19 Dec 2023 12:08:06 +0100
Don't collect our own shared inbox.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/data.c b/data.c
@@ -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;