summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-02-19 18:09:54 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-19 18:09:54 +0100
commit96716e4f43341beb3431a7caad10d48e6ca844ae (patch)
tree49e0771a80c5ecdf2cfc42969036fa6044382209 /vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
parentadds more code comments and some small code formatting tweaks (#3799) (diff)
downloadgotosocial-96716e4f43341beb3431a7caad10d48e6ca844ae.tar.xz
[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
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go42
1 files changed, 42 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go b/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
index 303a466b8..1e3e05e5a 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
@@ -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"