mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 06:25:04 +00:00
Use user_persist() to publish the actor after setting the aka.
This commit is contained in:
parent
b1e7de2fd3
commit
5f5d4be347
1 changed files with 1 additions and 6 deletions
7
main.c
7
main.c
|
@ -283,12 +283,7 @@ int main(int argc, char *argv[])
|
|||
if (valid_status(status)) {
|
||||
snac.config = xs_dict_set(snac.config, "aka", actor);
|
||||
|
||||
xs *fn = xs_fmt("%s/user.json", snac.basedir);
|
||||
FILE *f;
|
||||
if ((f = fopen(fn, "w")) != NULL) {
|
||||
xs_json_dump(snac.config, 4, f);
|
||||
fclose(f);
|
||||
}
|
||||
user_persist(&snac, 1);
|
||||
}
|
||||
else
|
||||
snac_log(&snac, xs_fmt("Webfinger error for %s %d", url, status));
|
||||
|
|
Loading…
Reference in a new issue