Send and receive public flag for profile
This commit is contained in:
parent
f9476409c8
commit
8942bb98c8
4 changed files with 6 additions and 2 deletions
|
|
@ -160,7 +160,8 @@ module Diaspora
|
|||
location: profile.location,
|
||||
searchable: profile.searchable,
|
||||
nsfw: profile.nsfw,
|
||||
tag_string: profile.tag_string
|
||||
tag_string: profile.tag_string,
|
||||
public: profile.public_details
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,8 @@ module Diaspora
|
|||
location: entity.location,
|
||||
searchable: entity.searchable,
|
||||
nsfw: entity.nsfw,
|
||||
tag_string: entity.tag_string
|
||||
tag_string: entity.tag_string,
|
||||
public_details: entity.public
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -188,6 +188,7 @@ describe Diaspora::Federation::Entities do
|
|||
expect(federation_entity.searchable).to eq(diaspora_entity.searchable)
|
||||
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.public).to eq(diaspora_entity.public_details)
|
||||
end
|
||||
|
||||
it "builds a reshare" do
|
||||
|
|
|
|||
|
|
@ -415,6 +415,7 @@ describe Diaspora::Federation::Receive do
|
|||
expect(profile.searchable).to eq(profile_entity.searchable)
|
||||
expect(profile.nsfw).to eq(profile_entity.nsfw)
|
||||
expect(profile.tag_string.split(" ")).to match_array(profile_entity.tag_string.split(" "))
|
||||
expect(profile.public_details).to eq(profile_entity.public)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue