Let users share their profile image with the fediverse (SCR-1)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m44s
CI / test (push) Failing after 6m30s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 6s

A share_avatar switch (off by default) in the sharing settings publishes the image as
the actor's icon and on the public profile page, via a public avatar endpoint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mattandClaude Sonnet 5.5 committed 2026-10-13 11:43:55 +01:00
1 parent 9243fe4d3f
commit 016fc707d1
12 files changed
+286 -3

No files matched your search

+50
View File
@@ -2940,6 +2940,44 @@
}
]
},
"/api/v1/federation/profiles/{username}/avatar": {
"get": {
"responses": {
"404": {
"description": "No image shared under that name",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"200": {
"description": "The profile image (JPEG, PNG or WebP)"
},
"default": {
"$ref": "#/components/responses/DEFAULT_ERROR"
}
},
"summary": "A public profile image",
"description": "For the web UI's profile page. Only served when the user shares and has chosen to\nshare their image.",
"tags": [
"Federation"
]
},
"parameters": [
{
"in": "path",
"name": "username",
"required": true,
"schema": {
"type": "string",
"minLength": 1
}
}
]
},
"/api/v1/federation/profiles/{username}/posts/{post_uuid}": {
"get": {
"responses": {
@@ -5526,6 +5564,10 @@
],
"description": "`off` (default): nothing. `profile`: a \"Now playing\" field on your profile, refreshed at most every 5 minutes and cleared when you stop. `posts`: the profile field, plus a post for each track played 30+ seconds, at most one every 30 minutes, replacing the last one."
},
"share_avatar": {
"type": "boolean",
"description": "Show your profile image on your public profile and send it to other servers as your picture. Off by default; has no effect if you have no image."
},
"handle": {
"type": "string",
"readOnly": true,
@@ -5615,6 +5657,10 @@
],
"description": "`off` (default): nothing. `profile`: a \"Now playing\" field on your profile, refreshed at most every 5 minutes and cleared when you stop. `posts`: the profile field, plus a post for each track played 30+ seconds, at most one every 30 minutes, replacing the last one."
},
"share_avatar": {
"type": "boolean",
"description": "Show your profile image on your public profile and send it to other servers as your picture. Off by default; has no effect if you have no image."
},
"handle": {
"type": "string",
"readOnly": true,
@@ -5705,6 +5751,10 @@
],
"description": "\"Track by Artist\", or null"
},
"has_avatar": {
"type": "boolean",
"description": "Whether there's a profile image at `/profiles/{username}/avatar`"
},
"handle": {
"type": "string",
"example": "@alice@scrobble.example"