summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go b/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go
index 8b9b416c5..61683c071 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go
@@ -3,13 +3,23 @@
package streams
import (
+ 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"
vocab "github.com/superseriousbusiness/activity/streams/vocab"
)
+// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends
+// from AnnounceApproval. Note that it returns false if the types are the
+// same; see the "IsOrExtends" variant instead.
+func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool {
+ return typeannounceapproval.AnnounceApprovalIsExtendedBy(other)
+}
+
// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from
// CanAnnounce. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
@@ -37,3 +47,17 @@ func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool {
func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool {
return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other)
}
+
+// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends
+// from LikeApproval. Note that it returns false if the types are the same;
+// see the "IsOrExtends" variant instead.
+func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool {
+ return typelikeapproval.LikeApprovalIsExtendedBy(other)
+}
+
+// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends
+// from ReplyApproval. Note that it returns false if the types are the same;
+// see the "IsOrExtends" variant instead.
+func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool {
+ return typereplyapproval.ReplyApprovalIsExtendedBy(other)
+}