mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Don't collect our own shared inbox.
This commit is contained in:
parent
dd51da30d8
commit
808849ba14
4
data.c
4
data.c
@ -1842,6 +1842,10 @@ void lastlog_write(snac *snac, const char *source)
|
|||||||
void inbox_add(const char *inbox)
|
void inbox_add(const char *inbox)
|
||||||
/* collects a shared 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 *md5 = xs_md5_hex(inbox, strlen(inbox));
|
||||||
xs *fn = xs_fmt("%s/inbox/%s", srv_basedir, md5);
|
xs *fn = xs_fmt("%s/inbox/%s", srv_basedir, md5);
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
Loading…
Reference in New Issue
Block a user