commit f67d501
Sam May
·
2026-02-10 20:19:07 +0000 UTC
parent d090695
mastoapi: add `uri` field to verify_credentials Mastodon split the field out from `url` for identification purposes in version 4.2.0, leaving the previous for simply navigating to the user page. Some services (notably Bridgy Fed) rely on the `uri` as part of their OAuth flow: https://github.com/snarfed/bridgy-fed/issues/2339
1 files changed,
+1,
-0
+1,
-0
1@@ -1459,6 +1459,7 @@ void credentials_get(char **body, char **ctype, int *status, snac snac)
2 acct = xs_dict_append(acct, "last_status_at", xs_dict_get(snac.config, "published"));
3 acct = xs_dict_append(acct, "note", xs_dict_get(snac.config, "bio"));
4 acct = xs_dict_append(acct, "url", snac.actor);
5+ acct = xs_dict_append(acct, "uri", snac.actor);
6
7 acct = xs_dict_append(acct, "locked",
8 xs_stock(xs_is_true(xs_dict_get(snac.config, "approve_followers")) ? XSTYPE_TRUE : XSTYPE_FALSE));