Fix: LD Signaturesで署名された投稿の検索許可(検索範囲)が改竄できる問題
This commit is contained in:
parent
39e73b4df8
commit
91a2dc81c4
7 changed files with 36 additions and 9 deletions
|
@ -81,6 +81,14 @@ RSpec.describe ActivityPub::NoteSerializer do
|
|||
end
|
||||
end
|
||||
|
||||
context 'when direct searchability' do
|
||||
let(:searchability) { :direct }
|
||||
|
||||
it 'send as direct searchability' do
|
||||
expect(subject['searchableBy']).to include "https://cb6e6126.ngrok.io/users/#{account.username}"
|
||||
end
|
||||
end
|
||||
|
||||
context 'when has a reference' do
|
||||
let(:referred) { Fabricate(:status) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue