diff options
author | 2025-02-19 18:09:54 +0100 | |
---|---|---|
committer | 2025-02-19 18:09:54 +0100 | |
commit | 96716e4f43341beb3431a7caad10d48e6ca844ae (patch) | |
tree | 49e0771a80c5ecdf2cfc42969036fa6044382209 /vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go | |
parent | adds more code comments and some small code formatting tweaks (#3799) (diff) | |
download | gotosocial-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_extends.go')
-rw-r--r-- | vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go b/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go index 3359b9df7..80b87ea43 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.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" ) +// GoToSocialGoToSocialAnnounceApprovalExtends returns true if AnnounceApproval +// extends from the other's type. +func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool { + return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other) +} + // GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from // the other's type. func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool { @@ -33,3 +42,15 @@ func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool { func GoToSocialGoToSocialInteractionPolicyExtends(other vocab.Type) bool { return typeinteractionpolicy.GoToSocialInteractionPolicyExtends(other) } + +// GoToSocialGoToSocialLikeApprovalExtends returns true if LikeApproval extends +// from the other's type. +func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool { + return typelikeapproval.GoToSocialLikeApprovalExtends(other) +} + +// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends +// from the other's type. +func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool { + return typereplyapproval.GoToSocialReplyApprovalExtends(other) +} |