Use optional flag for discovery entities instead of default value
This commit is contained in:
parent
b274cc3dad
commit
c0b141786e
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 <link rel="hub"> 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue