Remove guid and public_key from WebFinger
Related to diaspora/diaspora_federation#39
This commit is contained in:
parent
5e2d063c49
commit
87d0778086
2 changed files with 1 additions and 5 deletions
|
|
@ -20,9 +20,7 @@ DiasporaFederation.configure do |config|
|
||||||
profile_url: person.profile_url,
|
profile_url: person.profile_url,
|
||||||
atom_url: person.atom_url,
|
atom_url: person.atom_url,
|
||||||
salmon_url: person.receive_url,
|
salmon_url: person.receive_url,
|
||||||
subscribe_url: AppConfig.url_to("/people?q={uri}"),
|
subscribe_url: AppConfig.url_to("/people?q={uri}")
|
||||||
guid: person.guid,
|
|
||||||
public_key: person.serialized_public_key
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,6 @@ describe "diaspora federation callbacks" do
|
||||||
expect(wf.atom_url).to eq(person.atom_url)
|
expect(wf.atom_url).to eq(person.atom_url)
|
||||||
expect(wf.salmon_url).to eq(person.receive_url)
|
expect(wf.salmon_url).to eq(person.receive_url)
|
||||||
expect(wf.subscribe_url).to eq(AppConfig.url_to("/people?q={uri}"))
|
expect(wf.subscribe_url).to eq(AppConfig.url_to("/people?q={uri}"))
|
||||||
expect(wf.guid).to eq(person.guid)
|
|
||||||
expect(wf.public_key).to eq(person.serialized_public_key)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns nil if the person was not found" do
|
it "returns nil if the person was not found" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue