Fix avatar and profile header descriptions not being serialized over ActivityPub (#39352)

This commit is contained in:
Claire authored and GitHub committed 2026-06-10 08:46:36 +00:00
1 parent b48f907b20
commit e697d44144
3 files changed
+31 -2

No files matched your search

@@ -74,4 +74,14 @@ RSpec.describe ActivityPub::ActorSerializer do
end
end
end
describe 'avatar description' do
let(:record) { Fabricate(:account, avatar: attachment_fixture('avatar.gif'), avatar_description: 'test') }
it 'includes an `icon` with the appropraite `summary`' do
expect(subject).to include('icon' => a_hash_including(
'summary' => 'test'
))
end
end
end