diff options
| author | Sam May <ag@eitilt.life> | 2026-02-10 12:19:07 -0800 |
|---|---|---|
| committer | Sam May <ag@eitilt.life> | 2026-02-10 12:19:07 -0800 |
| commit | f67d501b964d1300ca961de95d1a5401cbeaeed4 (patch) | |
| tree | 285f57b1b33b08ee5ab69f2a96ff418ae5846559 | |
| parent | d0906957cd75c86436fec6efcefe4cebab4fedf0 (diff) | |
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
| -rw-r--r-- | mastoapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1459,6 +1459,7 @@ void credentials_get(char **body, char **ctype, int *status, snac snac) acct = xs_dict_append(acct, "last_status_at", xs_dict_get(snac.config, "published")); acct = xs_dict_append(acct, "note", xs_dict_get(snac.config, "bio")); acct = xs_dict_append(acct, "url", snac.actor); + acct = xs_dict_append(acct, "uri", snac.actor); acct = xs_dict_append(acct, "locked", xs_stock(xs_is_true(xs_dict_get(snac.config, "approve_followers")) ? XSTYPE_TRUE : XSTYPE_FALSE)); |