diff options
author | default <nobody@localhost> | 2023-12-19 12:08:06 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-12-19 12:08:06 +0100 |
commit | 808849ba149fc2ccb579589c0d2f40351af3c777 (patch) | |
tree | 039adf22d6be195f5c4d2321a05dbb235f12101f /data.c | |
parent | dd51da30d8aa1dae9e9aa7ae8baaee88a3e3ac3a (diff) |
Don't collect our own shared inbox.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |