mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 08:37:29 -06:00
[feature] Forward-compatibility with Approval objects (#3807)
* vendor * [feature] Forward-compatibility with Approval objects * vendor the thing * fix leetle bug * lil syntax tweak for beloved kimb
This commit is contained in:
parent
e220c6a894
commit
96716e4f43
125 changed files with 20960 additions and 2964 deletions
42
vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
42
vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
|
|
@ -142,10 +142,13 @@ import (
|
|||
propertycanlike "github.com/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike"
|
||||
propertycanreply "github.com/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply"
|
||||
propertyinteractionpolicy "github.com/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy"
|
||||
typeannounceapproval "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typecanannounce "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanreply "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typereplyapproval "github.com/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
propertyid "github.com/superseriousbusiness/activity/streams/impl/jsonld/property_id"
|
||||
propertytype "github.com/superseriousbusiness/activity/streams/impl/jsonld/property_type"
|
||||
propertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/property_value"
|
||||
|
|
@ -289,6 +292,19 @@ func (this Manager) DeserializeAnnounceActivityStreams() func(map[string]interfa
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeAnnounceApprovalGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialAnnounceApproval" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceApproval, error) {
|
||||
i, err := typeannounceapproval.DeserializeAnnounceApproval(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeAnyOfPropertyActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsAnyOfProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
@ -1216,6 +1232,19 @@ func (this Manager) DeserializeLikeActivityStreams() func(map[string]interface{}
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeLikeApprovalGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialLikeApproval" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeApproval, error) {
|
||||
i, err := typelikeapproval.DeserializeLikeApproval(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeLikedPropertyActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLikedProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
@ -1827,6 +1856,19 @@ func (this Manager) DeserializeRepliesPropertyActivityStreams() func(map[string]
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeReplyApprovalGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialReplyApproval" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyApproval, error) {
|
||||
i, err := typereplyapproval.DeserializeReplyApproval(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeResultPropertyActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsResultProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue