summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.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_pkg_gotosocial_disjoint.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_pkg_gotosocial_disjoint.go')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go b/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go
index c51884735..fce24ae1f 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go
@@ -3,13 +3,22 @@
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"
)
+// GoToSocialAnnounceApprovalIsDisjointWith returns true if AnnounceApproval is
+// disjoint with the other's type.
+func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool {
+ return typeannounceapproval.AnnounceApprovalIsDisjointWith(other)
+}
+
// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint
// with the other's type.
func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool {
@@ -33,3 +42,15 @@ func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool {
func GoToSocialInteractionPolicyIsDisjointWith(other vocab.Type) bool {
return typeinteractionpolicy.InteractionPolicyIsDisjointWith(other)
}
+
+// GoToSocialLikeApprovalIsDisjointWith returns true if LikeApproval is disjoint
+// with the other's type.
+func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool {
+ return typelikeapproval.LikeApprovalIsDisjointWith(other)
+}
+
+// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint
+// with the other's type.
+func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool {
+ return typereplyapproval.ReplyApprovalIsDisjointWith(other)
+}