diff --git a/lib/diaspora_federation/discovery/h_card.rb b/lib/diaspora_federation/discovery/h_card.rb index 22f97f0..69d7526 100644 --- a/lib/diaspora_federation/discovery/h_card.rb +++ b/lib/diaspora_federation/discovery/h_card.rb @@ -48,7 +48,7 @@ module DiasporaFederation # @!attribute [r] nickname # The first part of the diaspora* ID # @return [String] nickname - property :nickname, :string, default: nil + property :nickname, :string, optional: true # @!attribute [r] full_name # @return [String] display name of the user @@ -60,7 +60,7 @@ module DiasporaFederation # installations). # # @return [String] link to the pod - property :url, :string, default: nil + property :url, :string, optional: true # @!attribute [r] public_key # When a user is created on the pod, the pod MUST generate a pgp keypair diff --git a/lib/diaspora_federation/discovery/web_finger.rb b/lib/diaspora_federation/discovery/web_finger.rb index c16f634..295038e 100644 --- a/lib/diaspora_federation/discovery/web_finger.rb +++ b/lib/diaspora_federation/discovery/web_finger.rb @@ -44,7 +44,7 @@ module DiasporaFederation # @!attribute [r] profile_url # @return [String] link to the users profile - property :profile_url, :string, default: nil + property :profile_url, :string, optional: true # @!attribute [r] atom_url # This atom feed is an Activity Stream of the user's public posts. diaspora* @@ -55,18 +55,18 @@ module DiasporaFederation # Note that this feed MAY also be made available through the PubSubHubbub # mechanism by supplying a in the atom feed itself. # @return [String] atom feed url - property :atom_url, :string, default: nil + property :atom_url, :string, optional: true # @!attribute [r] salmon_url # @note could be nil # @return [String] salmon endpoint url # @see https://cdn.rawgit.com/salmon-protocol/salmon-protocol/master/draft-panzer-salmon-00.html#SMLR # Panzer draft for Salmon, paragraph 3.3 - property :salmon_url, :string, default: nil + property :salmon_url, :string, optional: true # @!attribute [r] subscribe_url # This url is used to find another user on the home-pod of the user in the webfinger. - property :subscribe_url, :string, default: nil + property :subscribe_url, :string, optional: true # +hcard_url+ link relation REL_HCARD = "http://microformats.org/profile/hcard".freeze