summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-31 17:51:33 +0200
committerdefault <nobody@localhost>2024-05-31 17:51:33 +0200
commit6d29cfd63d744d91fa549bbd89ed2bf51c0c4760 (patch)
tree631c6bb402a76823bbc5f4c22afdefe5463fc9af /mastoapi.c
parentfb3bda700caae47f2cb45e8f4a47f4538e8f65ed (diff)
Don't propagate the user change after dismissing the announcement.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index db45919..3b51906 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -3319,7 +3319,7 @@ int mastoapi_patch_handler(const xs_dict *req, const char *q_path,
}
/* Persist profile */
- if (user_persist(&snac) == 0)
+ if (user_persist(&snac, 1) == 0)
credentials_get(body, ctype, &status, snac);
else
status = HTTP_STATUS_INTERNAL_SERVER_ERROR;