mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
Add avatar_description and header_description parameters to PATCH /api/v1/profile (#38221)
This commit is contained in:
parent
8124f1581a
commit
b7246518bf
|
|
@ -25,7 +25,9 @@ class Api::V1::ProfilesController < Api::BaseController
|
|||
:display_name,
|
||||
:note,
|
||||
:avatar,
|
||||
:avatar_description,
|
||||
:header,
|
||||
:header_description,
|
||||
:locked,
|
||||
:bot,
|
||||
:discoverable,
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ module Mastodon
|
|||
|
||||
def api_versions
|
||||
{
|
||||
mastodon: 8,
|
||||
mastodon: 9,
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user