mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-28 23:53:36 +00:00
Don't collect our own shared inbox.
This commit is contained in:
parent
dd51da30d8
commit
808849ba14
1 changed files with 4 additions and 0 deletions
4
data.c
4
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;
|
||||
|
|
Loading…
Reference in a new issue