mark RelayableRetraction and SignedRetraction as deprecated

The normal Rectraction can be used for this:

* RelayableRetraction: Both the author and the parent author can retract
  a relayable, so there is no need to check if it was relayed.
* SignedRetraction: this is already signed at the salmon-level. No need
  to add an additional signature at this level. Only used for
  StatusMessage.
This commit is contained in:
Benjamin Neff 2015-12-06 23:45:10 +01:00
parent c169fac517
commit 965babbfee
4 changed files with 4 additions and 0 deletions

View file

@ -17,6 +17,7 @@ module DiasporaFederation
# is not checked, only parent_author_signature is checked. # is not checked, only parent_author_signature is checked.
# #
# @see Validators::RelayableRetractionValidator # @see Validators::RelayableRetractionValidator
# @deprecated will be replaced with {Entities::Retraction}
class RelayableRetraction < Entity class RelayableRetraction < Entity
# @!attribute [r] parent_author_signature # @!attribute [r] parent_author_signature
# Contains a signature of the entity using the private key of the author of a parent post # Contains a signature of the entity using the private key of the author of a parent post

View file

@ -4,6 +4,7 @@ module DiasporaFederation
# entity of post type ({Entities::StatusMessage}) # entity of post type ({Entities::StatusMessage})
# #
# @see Validators::SignedRetractionValidator # @see Validators::SignedRetractionValidator
# @deprecated will be replaced with {Entities::Retraction}
class SignedRetraction < Entity class SignedRetraction < Entity
# @!attribute [r] target_guid # @!attribute [r] target_guid
# guid of a post to be deleted # guid of a post to be deleted

View file

@ -1,6 +1,7 @@
module DiasporaFederation module DiasporaFederation
module Validators module Validators
# This validates a {Entities::RelayableRetraction} # This validates a {Entities::RelayableRetraction}
# @deprecated the {Entities::RelayableRetraction} will be replaced with {Entities::Retraction}
class RelayableRetractionValidator < Validation::Validator class RelayableRetractionValidator < Validation::Validator
include Validation include Validation

View file

@ -1,6 +1,7 @@
module DiasporaFederation module DiasporaFederation
module Validators module Validators
# This validates a {Entities::SignedRetraction} # This validates a {Entities::SignedRetraction}
# @deprecated the {Entities::RelayableRetraction} will be replaced with {Entities::Retraction}
class SignedRetractionValidator < Validation::Validator class SignedRetractionValidator < Validation::Validator
include Validation include Validation