diff options
| author | 2026-02-10 12:19:07 -0800 | |
|---|---|---|
| committer | 2026-02-10 12:19:07 -0800 | |
| commit | f67d501b964d1300ca961de95d1a5401cbeaeed4 (patch) | |
| tree | 285f57b1b33b08ee5ab69f2a96ff418ae5846559 | |
| parent | mastoapi: added a (dummy) client_secret_expires_at value in app creation. (diff) | |
| download | snac2-f67d501b964d1300ca961de95d1a5401cbeaeed4.tar.gz snac2-f67d501b964d1300ca961de95d1a5401cbeaeed4.tar.xz snac2-f67d501b964d1300ca961de95d1a5401cbeaeed4.zip | |
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) | |||
| 1459 | acct = xs_dict_append(acct, "last_status_at", xs_dict_get(snac.config, "published")); | 1459 | acct = xs_dict_append(acct, "last_status_at", xs_dict_get(snac.config, "published")); |
| 1460 | acct = xs_dict_append(acct, "note", xs_dict_get(snac.config, "bio")); | 1460 | acct = xs_dict_append(acct, "note", xs_dict_get(snac.config, "bio")); |
| 1461 | acct = xs_dict_append(acct, "url", snac.actor); | 1461 | acct = xs_dict_append(acct, "url", snac.actor); |
| 1462 | acct = xs_dict_append(acct, "uri", snac.actor); | ||
| 1462 | 1463 | ||
| 1463 | acct = xs_dict_append(acct, "locked", | 1464 | acct = xs_dict_append(acct, "locked", |
| 1464 | xs_stock(xs_is_true(xs_dict_get(snac.config, "approve_followers")) ? XSTYPE_TRUE : XSTYPE_FALSE)); | 1465 | xs_stock(xs_is_true(xs_dict_get(snac.config, "approve_followers")) ? XSTYPE_TRUE : XSTYPE_FALSE)); |