Browse Source

Use user_persist() to publish the actor after setting the aka.

default 6 months ago
parent
commit
5f5d4be347
1 changed files with 1 additions and 6 deletions
  1. 1 6
      main.c

+ 1 - 6
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));