Remove URL from hcard, it's not used anymore
This commit is contained in:
parent
d5107f5678
commit
6b8e8a70a0
2 changed files with 2 additions and 22 deletions
|
|
@ -56,14 +56,6 @@ module DiasporaFederation
|
||||||
# @return [String] display name of the user
|
# @return [String] display name of the user
|
||||||
property :full_name, :string
|
property :full_name, :string
|
||||||
|
|
||||||
# @!attribute [r] url
|
|
||||||
# @deprecated should be changed to the profile url. The pod url is in
|
|
||||||
# the WebFinger (see {WebFinger#seed_url}, will affect older diaspora*
|
|
||||||
# installations).
|
|
||||||
#
|
|
||||||
# @return [String] link to the pod
|
|
||||||
property :url, :string, optional: true
|
|
||||||
|
|
||||||
# @!attribute [r] public_key
|
# @!attribute [r] public_key
|
||||||
# When a user is created on the pod, the pod MUST generate a pgp keypair
|
# When a user is created on the pod, the pod MUST generate a pgp keypair
|
||||||
# for them. This key is used for signing messages. The format is a
|
# for them. This key is used for signing messages. The format is a
|
||||||
|
|
@ -145,10 +137,6 @@ module DiasporaFederation
|
||||||
add_simple_property(content, :family_name, "family_name", @last_name)
|
add_simple_property(content, :family_name, "family_name", @last_name)
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
add_property(content, :url) do |html|
|
|
||||||
html.a(@url.to_s, id: "pod_location", class: "url", rel: "me", href: @url.to_s)
|
|
||||||
end
|
|
||||||
|
|
||||||
add_photos(content)
|
add_photos(content)
|
||||||
|
|
||||||
builder.doc.to_xhtml(indent: 2, indent_text: " ")
|
builder.doc.to_xhtml(indent: 2, indent_text: " ")
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ module DiasporaFederation
|
||||||
guid: person.guid,
|
guid: person.guid,
|
||||||
nickname: person.nickname,
|
nickname: person.nickname,
|
||||||
full_name: person.full_name,
|
full_name: person.full_name,
|
||||||
url: person.url,
|
|
||||||
photo_large_url: photo_large_url,
|
photo_large_url: photo_large_url,
|
||||||
photo_medium_url: photo_medium_url,
|
photo_medium_url: photo_medium_url,
|
||||||
photo_small_url: photo_small_url,
|
photo_small_url: photo_small_url,
|
||||||
|
|
@ -77,12 +76,6 @@ module DiasporaFederation
|
||||||
<span class="family_name">#{person.last_name}</span>
|
<span class="family_name">#{person.last_name}</span>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl class="entity_url">
|
|
||||||
<dt>Url</dt>
|
|
||||||
<dd>
|
|
||||||
<a id="pod_location" class="url" rel="me" href="#{person.url}">#{person.url}</a>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<dl class="entity_photo">
|
<dl class="entity_photo">
|
||||||
<dt>Photo</dt>
|
<dt>Photo</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
@ -111,14 +104,14 @@ module DiasporaFederation
|
||||||
|
|
||||||
it_behaves_like "an Entity subclass"
|
it_behaves_like "an Entity subclass"
|
||||||
|
|
||||||
context "generation" do
|
context "when generating" do
|
||||||
it "creates an instance from a data hash" do
|
it "creates an instance from a data hash" do
|
||||||
hcard = Discovery::HCard.new(data)
|
hcard = Discovery::HCard.new(data)
|
||||||
expect(hcard.to_html).to eq(html)
|
expect(hcard.to_html).to eq(html)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "parsing" do
|
context "when parsing" do
|
||||||
it "reads its own output" do
|
it "reads its own output" do
|
||||||
hcard = Discovery::HCard.from_html(html)
|
hcard = Discovery::HCard.from_html(html)
|
||||||
expect(hcard.guid).to eq(person.guid)
|
expect(hcard.guid).to eq(person.guid)
|
||||||
|
|
@ -221,7 +214,6 @@ module DiasporaFederation
|
||||||
expect(hcard.last_name).to eq(person.last_name)
|
expect(hcard.last_name).to eq(person.last_name)
|
||||||
|
|
||||||
expect(hcard.nickname).to be_nil
|
expect(hcard.nickname).to be_nil
|
||||||
expect(hcard.url).to be_nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "is frozen after parsing" do
|
it "is frozen after parsing" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue