mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Add documentation for attribution_domains
(#1558)
* Add attribution_domains * Adjust version Co-authored-by: Claire <claire.github-309c@sitedethib.com> * Moved to CredentialAccount * Revert merge error --------- Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
ccaaa4d89d
commit
91c68f33b3
@ -39,6 +39,7 @@ aliases: [
|
||||
"locked": false,
|
||||
"bot": false,
|
||||
"created_at": "2017-02-08T02:00:53.274Z",
|
||||
"attribution_domains": ["example.com", "example.net"],
|
||||
"note": "<p>:ms_rainbow_flag: :ms_bisexual_flagweb: :ms_nonbinary_flag: <a href=\"https://awoo.space/tags/awoo\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>awoo</span}.space <a href=\"https://awoo.space/tags/admin\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>admin</span} ~ <a href=\"https://awoo.space/tags/bi\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>bi</span} ~ <a href=\"https://awoo.space/tags/nonbinary\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>nonbinary</span} ~ compsci student ~ likes video <a href=\"https://awoo.space/tags/games\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>games</span} and weird/ old electronics and will post obsessively about both ~ avatar by <span class=\"h-card\"><a href=\"https://weirder.earth/@dzuk\" class=\"u-url mention\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">@<span>dzuk</span}</span></p>",
|
||||
"url": "https://awoo.space/@noiob",
|
||||
"avatar": "https://files.mastodon.social/accounts/avatars/000/023/634/original/6ca8804dc46800ad.png",
|
||||
@ -282,6 +283,7 @@ aliases: [
|
||||
"acct": "trwnh",
|
||||
"display_name": "infinite love ⴳ",
|
||||
// ...
|
||||
"attribution_domains": ["example.com", "example.net"],
|
||||
"note": "<p>i have approximate knowledge of many things. perpetual student. (nb/ace/they)</p><p>xmpp/email: a@trwnh.com<br /><a href=\"https://trwnh.com\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"invisible\">https://</span><span class=\"\">trwnh.com</span><span class=\"invisible\"></span></a><br />help me live: <a href=\"https://liberapay.com/trwnh\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"invisible\">https://</span><span class=\"\">liberapay.com/trwnh</span><span class=\"invisible\"></span></a> or paypal</p><p>- my triggers are moths and glitter<br />- i have all notifs except mentions turned off, so please interact if you wanna be friends! i literally will not notice otherwise<br />- dm me if i did something wrong, so i can improve<br />- purest person on fedi, do not lewd in my presence</p>",
|
||||
// ...
|
||||
"source": {
|
||||
@ -346,6 +348,13 @@ aliases: [
|
||||
}
|
||||
```
|
||||
|
||||
### `attribution_domains` {#attribution_domains}
|
||||
|
||||
**Description:** Domains of websites allowed to credit the account.\
|
||||
**Type:** Array of String\
|
||||
**Version history:**\
|
||||
4.4.0 (`mastodon` [API version]({{< relref "entities/Instance#api-versions" >}}) 3) - added
|
||||
|
||||
### `source` {#source}
|
||||
|
||||
**Description:** An extra attribute that contains source values to be used with API methods that [verify credentials]({{< relref "methods/accounts#verify_credentials" >}}) and [update credentials]({{< relref "methods/accounts#update_credentials" >}}).\
|
||||
|
@ -319,7 +319,8 @@ Update the user's display and preferences.
|
||||
2.4.2 - added `source[language]` parameter\
|
||||
2.7.0 - added `discoverable` parameter\
|
||||
4.1.0 - added `hide_collections` parameter\
|
||||
4.2.0 - added `indexable` parameter
|
||||
4.2.0 - added `indexable` parameter\
|
||||
4.4.0 (`mastodon` [API version]({{< relref "entities/Instance#api-versions" >}}) 3) - added `attribution_domains` parameter
|
||||
|
||||
#### Request
|
||||
|
||||
@ -357,6 +358,9 @@ hide_collections
|
||||
indexable
|
||||
: Boolean. Whether public posts should be searchable to anyone.
|
||||
|
||||
attribution_domains[]
|
||||
: Array of String. Domains of websites allowed to credit the account.
|
||||
|
||||
fields_attributes
|
||||
: Hash. The profile fields to be set. Inside this hash, the key is an integer cast to a string (although the exact integer does not matter), and the value is another hash including `name` and `value`. By default, max 4 fields.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user