Send and receive public flag for profile

This commit is contained in:
Benjamin Neff 2017-07-23 02:14:17 +02:00
parent f9476409c8
commit 8942bb98c8
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
4 changed files with 6 additions and 2 deletions

View file

@ -160,7 +160,8 @@ module Diaspora
location: profile.location, location: profile.location,
searchable: profile.searchable, searchable: profile.searchable,
nsfw: profile.nsfw, nsfw: profile.nsfw,
tag_string: profile.tag_string tag_string: profile.tag_string,
public: profile.public_details
) )
end end

View file

@ -122,7 +122,8 @@ module Diaspora
location: entity.location, location: entity.location,
searchable: entity.searchable, searchable: entity.searchable,
nsfw: entity.nsfw, nsfw: entity.nsfw,
tag_string: entity.tag_string tag_string: entity.tag_string,
public_details: entity.public
) )
end end
end end

View file

@ -188,6 +188,7 @@ describe Diaspora::Federation::Entities do
expect(federation_entity.searchable).to eq(diaspora_entity.searchable) expect(federation_entity.searchable).to eq(diaspora_entity.searchable)
expect(federation_entity.nsfw).to eq(diaspora_entity.nsfw) expect(federation_entity.nsfw).to eq(diaspora_entity.nsfw)
expect(federation_entity.tag_string.split(" ")).to match_array(diaspora_entity.tag_string.split(" ")) expect(federation_entity.tag_string.split(" ")).to match_array(diaspora_entity.tag_string.split(" "))
expect(federation_entity.public).to eq(diaspora_entity.public_details)
end end
it "builds a reshare" do it "builds a reshare" do

View file

@ -415,6 +415,7 @@ describe Diaspora::Federation::Receive do
expect(profile.searchable).to eq(profile_entity.searchable) expect(profile.searchable).to eq(profile_entity.searchable)
expect(profile.nsfw).to eq(profile_entity.nsfw) expect(profile.nsfw).to eq(profile_entity.nsfw)
expect(profile.tag_string.split(" ")).to match_array(profile_entity.tag_string.split(" ")) expect(profile.tag_string.split(" ")).to match_array(profile_entity.tag_string.split(" "))
expect(profile.public_details).to eq(profile_entity.public)
end end
end end