Add avatar_description and header_description parameters to PATCH /api/v1/profile (#38221)

This commit is contained in:
Claire 2026-03-16 15:04:25 +01:00 committed by GitHub
parent 8124f1581a
commit b7246518bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,9 @@ class Api::V1::ProfilesController < Api::BaseController
:display_name,
:note,
:avatar,
:avatar_description,
:header,
:header_description,
:locked,
:bot,
:discoverable,

View File

@ -45,7 +45,7 @@ module Mastodon
def api_versions
{
mastodon: 8,
mastodon: 9,
}
end

View File

@ -62,6 +62,7 @@ RSpec.describe 'Profile API' do
let(:params) do
{
avatar: fixture_file_upload('avatar.gif', 'image/gif'),
avatar_description: 'animated walking round cat',
discoverable: true,
display_name: "Alice Isn't Dead",
header: fixture_file_upload('attachment.jpg', 'image/jpeg'),
@ -110,6 +111,7 @@ RSpec.describe 'Profile API' do
display_name: eq("Alice Isn't Dead"),
note: 'Hello!',
avatar: exist,
avatar_description: 'animated walking round cat',
header: exist,
attribution_domains: ['example.com'],
fields: contain_exactly(