mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-26 02:54:43 +00:00
dicking aboot
This commit is contained in:
parent
c8a780e12a
commit
7f24080356
212 changed files with 45036 additions and 3356 deletions
go.modgo.sum
internal
ap
api/client/statuses
cache
db/bundb
federation
filter/interaction
gtsmodel
processing
interactionrequests
status
workers
typeutils
testrig
vendor/codeberg.org/superseriousbusiness/activity/streams
gen_consts.gogen_init.gogen_json_resolver.gogen_manager.gogen_pkg_gotosocial_disjoint.gogen_pkg_gotosocial_extendedby.gogen_pkg_gotosocial_extends.gogen_pkg_gotosocial_isorextends.gogen_pkg_gotosocial_property_constructors.gogen_pkg_gotosocial_type_constructors.gogen_resolver_utils.gogen_type_predicated_resolver.gogen_type_resolver.go
impl/activitystreams
property_actor
property_anyof
property_attachment
property_attributedto
property_audience
property_bcc
property_bto
property_cc
property_closed
property_context
property_describes
property_formertype
property_generator
property_inreplyto
property_instrument
property_items
property_location
property_object
property_oneof
property_ordereditems
property_origin
property_preview
property_relationship
property_result
property_source
2
go.mod
2
go.mod
|
@ -28,7 +28,7 @@ require (
|
|||
codeberg.org/gruf/go-sched v1.2.4
|
||||
codeberg.org/gruf/go-storage v0.2.0
|
||||
codeberg.org/gruf/go-structr v0.9.6
|
||||
codeberg.org/superseriousbusiness/activity v1.13.0-gts
|
||||
codeberg.org/superseriousbusiness/activity v1.13.0-gts.0.20250411153555-5d776b06f34a
|
||||
codeberg.org/superseriousbusiness/exif-terminator v0.10.0
|
||||
codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB
|
||||
codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB
|
||||
|
|
4
go.sum
generated
4
go.sum
generated
|
@ -40,8 +40,8 @@ codeberg.org/gruf/go-storage v0.2.0 h1:mKj3Lx6AavEkuXXtxqPhdq+akW9YwrnP16yQBF7K5
|
|||
codeberg.org/gruf/go-storage v0.2.0/go.mod h1:o3GzMDE5QNUaRnm/daUzFqvuAaC4utlgXDXYO79sWKU=
|
||||
codeberg.org/gruf/go-structr v0.9.6 h1:FSbJ1A0ubTQB82rC0K4o6qyiqrDGH1t9ivttm8Zy64o=
|
||||
codeberg.org/gruf/go-structr v0.9.6/go.mod h1:9k5hYztZ4PsBS+m1v5hUTeFiVUBTLF5VA7d9cd1OEMs=
|
||||
codeberg.org/superseriousbusiness/activity v1.13.0-gts h1:4WZLc/SNt+Vt5x2UjL2n6V5dHlIL9ECudUPx8Ld5rxw=
|
||||
codeberg.org/superseriousbusiness/activity v1.13.0-gts/go.mod h1:enxU1Lva4OcK6b/NBXscoHSEgEMsKJvdHrQFifQxp4o=
|
||||
codeberg.org/superseriousbusiness/activity v1.13.0-gts.0.20250411153555-5d776b06f34a h1:5qpDliXuxFtYLGRRAmEaxMQBsuyrL6qtz8vLnXY+VCM=
|
||||
codeberg.org/superseriousbusiness/activity v1.13.0-gts.0.20250411153555-5d776b06f34a/go.mod h1:enxU1Lva4OcK6b/NBXscoHSEgEMsKJvdHrQFifQxp4o=
|
||||
codeberg.org/superseriousbusiness/exif-terminator v0.10.0 h1:FiLX/AK07tzceS36I+kOP2aEH+aytjPSIlFoYePMEyg=
|
||||
codeberg.org/superseriousbusiness/exif-terminator v0.10.0/go.mod h1:c/mCytx/+fisOZeVXtjCpXld/SeZb3VsD1vj3oPAihA=
|
||||
codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB h1:v2shEkOPgydTL0n44EFPsDT9dsEP7KRG85aPnojCYkI=
|
||||
|
|
|
@ -102,9 +102,16 @@ const (
|
|||
|
||||
/* GtS stuff */
|
||||
|
||||
ObjectLikeApproval = "LikeApproval"
|
||||
ObjectReplyApproval = "ReplyApproval"
|
||||
ObjectAnnounceApproval = "AnnounceApproval"
|
||||
ObjectLikeApproval = "LikeApproval" // deprecated, use LikeAuthorization.
|
||||
ObjectReplyApproval = "ReplyApproval" // deprecated, use ReplyAuthorization.
|
||||
ObjectAnnounceApproval = "AnnounceApproval" // deprecated, use AnnounceAuthorization.
|
||||
ObjectLikeAuthorization = "LikeAuthorization"
|
||||
ObjectReplyAuthorization = "ReplyAuthorization"
|
||||
ObjectAnnounceAuthorization = "AnnounceAuthorization"
|
||||
|
||||
ActivityLikeRequest = "LikeRequest"
|
||||
ActivityReplyRequest = "ReplyRequest"
|
||||
ActivityAnnounceRequest = "AnnounceRequest"
|
||||
|
||||
/* Funkwhale stuff */
|
||||
|
||||
|
|
|
@ -1125,9 +1125,27 @@ func extractCanLike(
|
|||
return gtsmodel.PolicyRules{}
|
||||
}
|
||||
|
||||
// Try new `automaticApproval` and
|
||||
// `manualApproval` properties first.
|
||||
var (
|
||||
automaticApproval = withRules.GetGoToSocialAutomaticApproval()
|
||||
manualApproval = withRules.GetGoToSocialManualApproval()
|
||||
)
|
||||
if (automaticApproval != nil && automaticApproval.Len() != 0) ||
|
||||
(manualApproval != nil && manualApproval.Len() != 0) {
|
||||
// At least one is set,
|
||||
// use these new props.
|
||||
return gtsmodel.PolicyRules{
|
||||
AutomaticApproval: extractPolicyValues(automaticApproval, owner),
|
||||
ManualApproval: extractPolicyValues(manualApproval, owner),
|
||||
}
|
||||
}
|
||||
|
||||
// Fall back to deprecated `always`
|
||||
// and `withApproval` properties.
|
||||
return gtsmodel.PolicyRules{
|
||||
Always: extractPolicyValues(withRules.GetGoToSocialAlways(), owner),
|
||||
WithApproval: extractPolicyValues(withRules.GetGoToSocialApprovalRequired(), owner),
|
||||
AutomaticApproval: extractPolicyValues(withRules.GetGoToSocialAlways(), owner),
|
||||
ManualApproval: extractPolicyValues(withRules.GetGoToSocialApprovalRequired(), owner),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1149,9 +1167,27 @@ func extractCanReply(
|
|||
return gtsmodel.PolicyRules{}
|
||||
}
|
||||
|
||||
// Try new `automaticApproval` and
|
||||
// `manualApproval` properties first.
|
||||
var (
|
||||
automaticApproval = withRules.GetGoToSocialAutomaticApproval()
|
||||
manualApproval = withRules.GetGoToSocialManualApproval()
|
||||
)
|
||||
if (automaticApproval != nil && automaticApproval.Len() != 0) ||
|
||||
(manualApproval != nil && manualApproval.Len() != 0) {
|
||||
// At least one is set,
|
||||
// use these new props.
|
||||
return gtsmodel.PolicyRules{
|
||||
AutomaticApproval: extractPolicyValues(automaticApproval, owner),
|
||||
ManualApproval: extractPolicyValues(manualApproval, owner),
|
||||
}
|
||||
}
|
||||
|
||||
// Fall back to deprecated `always`
|
||||
// and `withApproval` properties.
|
||||
return gtsmodel.PolicyRules{
|
||||
Always: extractPolicyValues(withRules.GetGoToSocialAlways(), owner),
|
||||
WithApproval: extractPolicyValues(withRules.GetGoToSocialApprovalRequired(), owner),
|
||||
AutomaticApproval: extractPolicyValues(withRules.GetGoToSocialAlways(), owner),
|
||||
ManualApproval: extractPolicyValues(withRules.GetGoToSocialApprovalRequired(), owner),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1173,9 +1209,27 @@ func extractCanAnnounce(
|
|||
return gtsmodel.PolicyRules{}
|
||||
}
|
||||
|
||||
// Try new `automaticApproval` and
|
||||
// `manualApproval` properties first.
|
||||
var (
|
||||
automaticApproval = withRules.GetGoToSocialAutomaticApproval()
|
||||
manualApproval = withRules.GetGoToSocialManualApproval()
|
||||
)
|
||||
if (automaticApproval != nil && automaticApproval.Len() != 0) ||
|
||||
(manualApproval != nil && manualApproval.Len() != 0) {
|
||||
// At least one is set,
|
||||
// use these new props.
|
||||
return gtsmodel.PolicyRules{
|
||||
AutomaticApproval: extractPolicyValues(automaticApproval, owner),
|
||||
ManualApproval: extractPolicyValues(manualApproval, owner),
|
||||
}
|
||||
}
|
||||
|
||||
// Fall back to deprecated `always`
|
||||
// and `withApproval` properties.
|
||||
return gtsmodel.PolicyRules{
|
||||
Always: extractPolicyValues(withRules.GetGoToSocialAlways(), owner),
|
||||
WithApproval: extractPolicyValues(withRules.GetGoToSocialApprovalRequired(), owner),
|
||||
AutomaticApproval: extractPolicyValues(withRules.GetGoToSocialAlways(), owner),
|
||||
ManualApproval: extractPolicyValues(withRules.GetGoToSocialApprovalRequired(), owner),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ type ExtractPolicyTestSuite struct {
|
|||
APTestSuite
|
||||
}
|
||||
|
||||
func (suite *ExtractPolicyTestSuite) TestExtractPolicy() {
|
||||
func (suite *ExtractPolicyTestSuite) TestExtractPolicyDeprecated() {
|
||||
rawNote := `{
|
||||
"@context": [
|
||||
"https://gotosocial.org/ns",
|
||||
|
@ -104,27 +104,127 @@ func (suite *ExtractPolicyTestSuite) TestExtractPolicy() {
|
|||
|
||||
expectedPolicy := >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValuePublic,
|
||||
},
|
||||
WithApproval: gtsmodel.PolicyValues{},
|
||||
ManualApproval: gtsmodel.PolicyValues{},
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
gtsmodel.PolicyValueFollowers,
|
||||
"https://gts.superseriousbusiness.org/users/dumpsterqueer",
|
||||
"https://gts.superseriousbusiness.org/users/f0x",
|
||||
},
|
||||
WithApproval: gtsmodel.PolicyValues{
|
||||
ManualApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValuePublic,
|
||||
},
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
},
|
||||
WithApproval: gtsmodel.PolicyValues{
|
||||
ManualApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValuePublic,
|
||||
},
|
||||
},
|
||||
}
|
||||
suite.EqualValues(expectedPolicy, policy)
|
||||
}
|
||||
|
||||
func (suite *ExtractPolicyTestSuite) TestExtractPolicy() {
|
||||
rawNote := `{
|
||||
"@context": [
|
||||
"https://gotosocial.org/ns",
|
||||
"https://www.w3.org/ns/activitystreams"
|
||||
],
|
||||
"content": "hey @f0x and @dumpsterqueer",
|
||||
"contentMap": {
|
||||
"en": "hey @f0x and @dumpsterqueer",
|
||||
"fr": "bonjour @f0x et @dumpsterqueer"
|
||||
},
|
||||
"interactionPolicy": {
|
||||
"canLike": {
|
||||
"automaticApproval": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"manualApproval": []
|
||||
},
|
||||
"canReply": {
|
||||
"automaticApproval": [
|
||||
"http://localhost:8080/users/the_mighty_zork",
|
||||
"http://localhost:8080/users/the_mighty_zork/followers",
|
||||
"https://gts.superseriousbusiness.org/users/dumpsterqueer",
|
||||
"https://gts.superseriousbusiness.org/users/f0x"
|
||||
],
|
||||
"manualApproval": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
]
|
||||
},
|
||||
"canAnnounce": {
|
||||
"automaticApproval": [
|
||||
"http://localhost:8080/users/the_mighty_zork"
|
||||
],
|
||||
"manualApproval": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tag": [
|
||||
{
|
||||
"href": "https://gts.superseriousbusiness.org/users/dumpsterqueer",
|
||||
"name": "@dumpsterqueer@superseriousbusiness.org",
|
||||
"type": "Mention"
|
||||
},
|
||||
{
|
||||
"href": "https://gts.superseriousbusiness.org/users/f0x",
|
||||
"name": "@f0x@superseriousbusiness.org",
|
||||
"type": "Mention"
|
||||
}
|
||||
],
|
||||
"type": "Note"
|
||||
}`
|
||||
|
||||
statusable, err := ap.ResolveStatusable(
|
||||
context.Background(),
|
||||
io.NopCloser(
|
||||
bytes.NewBufferString(rawNote),
|
||||
),
|
||||
)
|
||||
if err != nil {
|
||||
suite.FailNow(err.Error())
|
||||
}
|
||||
|
||||
policy := ap.ExtractInteractionPolicy(
|
||||
statusable,
|
||||
// Zork didn't actually create
|
||||
// this status but nevermind.
|
||||
suite.testAccounts["local_account_1"],
|
||||
)
|
||||
|
||||
expectedPolicy := >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValuePublic,
|
||||
},
|
||||
ManualApproval: gtsmodel.PolicyValues{},
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
gtsmodel.PolicyValueFollowers,
|
||||
"https://gts.superseriousbusiness.org/users/dumpsterqueer",
|
||||
"https://gts.superseriousbusiness.org/users/f0x",
|
||||
},
|
||||
ManualApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValuePublic,
|
||||
},
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
},
|
||||
ManualApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValuePublic,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -578,7 +578,7 @@ func NormalizeOutgoingContentProp(item WithContent, rawJSON map[string]interface
|
|||
// NormalizeOutgoingInteractionPolicyProp replaces single-entry interactionPolicy values
|
||||
// with single-entry arrays, for better compatibility with other AP implementations.
|
||||
//
|
||||
// Ie:
|
||||
// Eg:
|
||||
//
|
||||
// "interactionPolicy": {
|
||||
// "canAnnounce": {
|
||||
|
@ -638,6 +638,7 @@ func NormalizeOutgoingInteractionPolicyProp(item WithInteractionPolicy, rawJSON
|
|||
"canLike",
|
||||
"canReply",
|
||||
"canAnnounce",
|
||||
"canQuote",
|
||||
} {
|
||||
// Either "canAnnounce",
|
||||
// "canLike", or "canApprove"
|
||||
|
|
|
@ -633,7 +633,7 @@ func (suite *StatusBoostTestSuite) TestPostBoostImplicitAccept() {
|
|||
suite.FailNow(err.Error())
|
||||
}
|
||||
suite.NotZero(intReq.AcceptedAt)
|
||||
suite.NotEmpty(intReq.URI)
|
||||
suite.NotEmpty(intReq.ResponseURI)
|
||||
}
|
||||
|
||||
func TestStatusBoostTestSuite(t *testing.T) {
|
||||
|
|
|
@ -308,7 +308,7 @@ func (suite *StatusFaveTestSuite) TestPostFaveImplicitAccept() {
|
|||
suite.FailNow(err.Error())
|
||||
}
|
||||
suite.NotZero(intReq.AcceptedAt)
|
||||
suite.NotEmpty(intReq.URI)
|
||||
suite.NotEmpty(intReq.ResponseURI)
|
||||
|
||||
// Check visibility of status to public after posting fave.
|
||||
visible, err = visFilter.StatusVisible(ctx, nil, dbStatus)
|
||||
|
|
2
internal/cache/size.go
vendored
2
internal/cache/size.go
vendored
|
@ -487,7 +487,7 @@ func sizeofInteractionRequest() uintptr {
|
|||
InteractingAccountID: exampleID,
|
||||
InteractionURI: exampleURI,
|
||||
InteractionType: gtsmodel.InteractionAnnounce,
|
||||
URI: exampleURI,
|
||||
ResponseURI: exampleURI,
|
||||
AcceptedAt: exampleTime,
|
||||
}))
|
||||
}
|
||||
|
|
|
@ -218,7 +218,7 @@ func (i *interactionDB) PopulateInteractionRequest(ctx context.Context, req *gts
|
|||
errs.Appendf("error populating interactionRequest Like: %w", err)
|
||||
}
|
||||
|
||||
case gtsmodel.InteractionReply:
|
||||
case gtsmodel.InteractionReply, gtsmodel.InteractionReplyRequest:
|
||||
req.Reply, err = i.state.DB.GetStatusByURI(ctx, req.InteractionURI)
|
||||
if err != nil && !errors.Is(err, db.ErrNoEntries) {
|
||||
errs.Appendf("error populating interactionRequest Reply: %w", err)
|
||||
|
|
|
@ -229,7 +229,7 @@ func (suite *InteractionTestSuite) TestInteractionRejected() {
|
|||
|
||||
// Update the interaction request to mark it rejected.
|
||||
req.RejectedAt = time.Now()
|
||||
req.URI = "https://some.reject.uri"
|
||||
req.ResponseURI = "https://some.reject.uri"
|
||||
if err := suite.state.DB.UpdateInteractionRequest(ctx, req, "uri", "rejected_at"); err != nil {
|
||||
suite.FailNow(err.Error())
|
||||
}
|
||||
|
|
|
@ -174,31 +174,31 @@ func init() {
|
|||
if !*oldStatus.Likeable {
|
||||
// Only author can like.
|
||||
policy.CanLike = gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
},
|
||||
WithApproval: make(gtsmodel.PolicyValues, 0),
|
||||
ManualApproval: make(gtsmodel.PolicyValues, 0),
|
||||
}
|
||||
}
|
||||
|
||||
if !*oldStatus.Replyable {
|
||||
// Only author + mentioned can Reply.
|
||||
policy.CanReply = gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
gtsmodel.PolicyValueMentioned,
|
||||
},
|
||||
WithApproval: make(gtsmodel.PolicyValues, 0),
|
||||
ManualApproval: make(gtsmodel.PolicyValues, 0),
|
||||
}
|
||||
}
|
||||
|
||||
if !*oldStatus.Boostable {
|
||||
// Only author can Announce.
|
||||
policy.CanAnnounce = gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
AutomaticApproval: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
},
|
||||
WithApproval: make(gtsmodel.PolicyValues, 0),
|
||||
ManualApproval: make(gtsmodel.PolicyValues, 0),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -265,7 +265,7 @@ func (d *Dereferencer) isPermittedReply(
|
|||
)
|
||||
}
|
||||
|
||||
if replyable.Permitted() &&
|
||||
if replyable.AutomaticApproval() &&
|
||||
!replyable.MatchedOnCollection() {
|
||||
// Reply is permitted and match was *not* made
|
||||
// based on inclusion in a followers/following
|
||||
|
@ -375,7 +375,7 @@ func (d *Dereferencer) unpermittedByParent(
|
|||
InteractingAccountID: reply.AccountID,
|
||||
InteractionURI: reply.URI,
|
||||
InteractionType: gtsmodel.InteractionReply,
|
||||
URI: uri,
|
||||
ResponseURI: uri,
|
||||
RejectedAt: time.Now(),
|
||||
}
|
||||
err := d.state.DB.PutInteractionRequest(ctx, rejection)
|
||||
|
@ -430,7 +430,7 @@ func (d *Dereferencer) isPermittedByApprovedByIRI(
|
|||
// pending approval, clear that now.
|
||||
reply.PendingApproval = util.Ptr(false)
|
||||
if thisReq != nil {
|
||||
thisReq.URI = approvedByIRI
|
||||
thisReq.ResponseURI = approvedByIRI
|
||||
thisReq.AcceptedAt = time.Now()
|
||||
thisReq.RejectedAt = time.Time{}
|
||||
err := d.state.DB.UpdateInteractionRequest(
|
||||
|
@ -483,7 +483,7 @@ func (d *Dereferencer) rejectedByPolicy(
|
|||
// request is marked as rejected.
|
||||
thisReq.RejectedAt = time.Now()
|
||||
thisReq.AcceptedAt = time.Time{}
|
||||
thisReq.URI = rejectURI
|
||||
thisReq.ResponseURI = rejectURI
|
||||
err := d.state.DB.UpdateInteractionRequest(
|
||||
ctx,
|
||||
thisReq,
|
||||
|
@ -507,7 +507,7 @@ func (d *Dereferencer) rejectedByPolicy(
|
|||
InteractingAccountID: reply.AccountID,
|
||||
InteractionURI: reply.URI,
|
||||
InteractionType: gtsmodel.InteractionReply,
|
||||
URI: rejectURI,
|
||||
ResponseURI: rejectURI,
|
||||
RejectedAt: time.Now(),
|
||||
}
|
||||
err := d.state.DB.PutInteractionRequest(ctx, rejection)
|
||||
|
@ -569,7 +569,7 @@ func (d *Dereferencer) isPermittedBoost(
|
|||
return false, nil
|
||||
}
|
||||
|
||||
if boostable.Permitted() &&
|
||||
if boostable.AutomaticApproval() &&
|
||||
!boostable.MatchedOnCollection() {
|
||||
// Booster is permitted to do this
|
||||
// interaction, and didn't match on
|
||||
|
|
|
@ -50,6 +50,11 @@ type DB interface {
|
|||
Move(context.Context, vocab.ActivityStreamsMove) error
|
||||
Flag(context.Context, vocab.ActivityStreamsFlag) error
|
||||
|
||||
// Custom types.
|
||||
LikeRequest(context.Context, vocab.GoToSocialLikeRequest) error
|
||||
ReplyRequest(context.Context, vocab.GoToSocialReplyRequest) error
|
||||
AnnounceRequest(context.Context, vocab.GoToSocialAnnounceRequest) error
|
||||
|
||||
/*
|
||||
Extra/convenience functionality.
|
||||
*/
|
||||
|
|
152
internal/federation/federatingdb/interactionreqs.go
Normal file
152
internal/federation/federatingdb/interactionreqs.go
Normal file
|
@ -0,0 +1,152 @@
|
|||
// GoToSocial
|
||||
// Copyright (C) GoToSocial Authors admin@gotosocial.org
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package federatingdb
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/ap"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/id"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/messages"
|
||||
)
|
||||
|
||||
func (f *federatingDB) LikeRequest(
|
||||
ctx context.Context,
|
||||
likeReq vocab.GoToSocialLikeRequest,
|
||||
) error {
|
||||
log.DebugKV(ctx, "LikeRequest", serialize{likeReq})
|
||||
|
||||
// Mark activity as handled.
|
||||
f.storeActivityID(likeReq)
|
||||
|
||||
// Extract relevant values from passed ctx.
|
||||
activityContext := getActivityContext(ctx)
|
||||
if activityContext.internal {
|
||||
return nil // Already processed.
|
||||
}
|
||||
|
||||
requesting := activityContext.requestingAcct
|
||||
receiving := activityContext.receivingAcct
|
||||
|
||||
if receiving.IsMoving() {
|
||||
// A Moving account
|
||||
// can't accept a Like.
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert received LikeRequest type to dummy
|
||||
// fave, so that we can check against policies.
|
||||
// This dummy won't be stored in the database,
|
||||
// it's used purely for doing permission checks.
|
||||
dummyFave, err := f.converter.ASLikeToFave(ctx, likeReq)
|
||||
if err != nil {
|
||||
err := gtserror.Newf("error converting from AS type: %w", err)
|
||||
return gtserror.WrapWithCode(http.StatusBadRequest, err)
|
||||
}
|
||||
|
||||
if !*dummyFave.Status.Local {
|
||||
// Only process like requests for local statuses.
|
||||
//
|
||||
// If the remote has sent us a like request for a
|
||||
// status that's not ours, we should ignore it.
|
||||
return nil
|
||||
}
|
||||
|
||||
// Ensure fave would be enacted by correct account.
|
||||
if dummyFave.AccountID != requesting.ID {
|
||||
return gtserror.NewfWithCode(http.StatusForbidden, "requester %s is not expected actor %s",
|
||||
requesting.URI, dummyFave.Account.URI)
|
||||
}
|
||||
|
||||
// Ensure fave would be received by correct account.
|
||||
if dummyFave.TargetAccountID != receiving.ID {
|
||||
return gtserror.NewfWithCode(http.StatusForbidden, "receiver %s is not expected object %s",
|
||||
receiving.URI, dummyFave.TargetAccount.URI)
|
||||
}
|
||||
|
||||
// Check how we should handle this request.
|
||||
policyResult, err := f.intFilter.StatusLikeable(ctx,
|
||||
requesting,
|
||||
dummyFave.Status,
|
||||
)
|
||||
if err != nil {
|
||||
return gtserror.Newf("error seeing if status %s is likeable: %w", dummyFave.Status.URI, err)
|
||||
}
|
||||
|
||||
// Determine whether to automatically accept,
|
||||
// automatically reject, or pend approval.
|
||||
var (
|
||||
acceptedAt time.Time
|
||||
rejectedAt time.Time
|
||||
)
|
||||
if policyResult.AutomaticApproval() {
|
||||
acceptedAt = time.Now()
|
||||
} else if policyResult.Forbidden() {
|
||||
rejectedAt = time.Now()
|
||||
}
|
||||
|
||||
interactionReq := >smodel.InteractionRequest{
|
||||
ID: id.NewULID(),
|
||||
StatusID: dummyFave.Status.ID,
|
||||
Status: dummyFave.Status,
|
||||
TargetAccountID: receiving.ID,
|
||||
TargetAccount: receiving,
|
||||
InteractingAccountID: requesting.ID,
|
||||
InteractingAccount: requesting,
|
||||
InteractionURI: dummyFave.URI,
|
||||
InteractionType: gtsmodel.InteractionLikeRequest,
|
||||
AcceptedAt: acceptedAt,
|
||||
RejectedAt: rejectedAt,
|
||||
|
||||
// Empty as reject/accept
|
||||
// response not yet sent.
|
||||
ResponseURI: "",
|
||||
}
|
||||
|
||||
// Send the interactionReq through to
|
||||
// the processor to handle side effects.
|
||||
f.state.Workers.Federator.Queue.Push(&messages.FromFediAPI{
|
||||
APObjectType: ap.ActivityLikeRequest,
|
||||
APActivityType: ap.ActivityCreate,
|
||||
GTSModel: interactionReq,
|
||||
Receiving: receiving,
|
||||
Requesting: requesting,
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *federatingDB) ReplyRequest(
|
||||
ctx context.Context,
|
||||
replyReq vocab.GoToSocialReplyRequest,
|
||||
) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *federatingDB) AnnounceRequest(
|
||||
ctx context.Context,
|
||||
announceReq vocab.GoToSocialAnnounceRequest,
|
||||
) error {
|
||||
return nil
|
||||
}
|
|
@ -98,7 +98,7 @@ func (f *federatingDB) Like(ctx context.Context, likeable vocab.ActivityStreamsL
|
|||
)
|
||||
|
||||
switch {
|
||||
case policyResult.WithApproval():
|
||||
case policyResult.ManualApproval():
|
||||
// Requester allowed to do
|
||||
// this pending approval.
|
||||
pendingApproval = true
|
||||
|
@ -111,7 +111,7 @@ func (f *federatingDB) Like(ctx context.Context, likeable vocab.ActivityStreamsL
|
|||
pendingApproval = true
|
||||
preApproved = true
|
||||
|
||||
case policyResult.Permitted():
|
||||
case policyResult.AutomaticApproval():
|
||||
// Requester straight up
|
||||
// permitted to do this,
|
||||
// no need for Accept.
|
||||
|
|
|
@ -317,7 +317,7 @@ func (f *federatingDB) rejectStatusIRI(
|
|||
InteractingAccountID: receivingAcct.ID,
|
||||
InteractingAccount: receivingAcct,
|
||||
InteractionURI: status.URI,
|
||||
URI: activityID,
|
||||
ResponseURI: activityID,
|
||||
RejectedAt: time.Now(),
|
||||
}
|
||||
|
||||
|
@ -343,7 +343,7 @@ func (f *federatingDB) rejectStatusIRI(
|
|||
case req.IsRejected():
|
||||
// Interaction has already been rejected. Just
|
||||
// update to this Reject URI and then return early.
|
||||
req.URI = activityID
|
||||
req.ResponseURI = activityID
|
||||
if err := f.state.DB.UpdateInteractionRequest(ctx, req, "uri"); err != nil {
|
||||
err := gtserror.Newf("db error updating interaction request: %w", err)
|
||||
return gtserror.NewErrorInternalError(err)
|
||||
|
@ -355,7 +355,7 @@ func (f *federatingDB) rejectStatusIRI(
|
|||
// Rejected, even if previously Accepted.
|
||||
req.AcceptedAt = time.Time{}
|
||||
req.RejectedAt = time.Now()
|
||||
req.URI = activityID
|
||||
req.ResponseURI = activityID
|
||||
if err := f.state.DB.UpdateInteractionRequest(ctx, req,
|
||||
"accepted_at",
|
||||
"rejected_at",
|
||||
|
@ -450,7 +450,7 @@ func (f *federatingDB) rejectLikeIRI(
|
|||
InteractionURI: fave.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Like: fave,
|
||||
URI: activityID,
|
||||
ResponseURI: activityID,
|
||||
RejectedAt: time.Now(),
|
||||
}
|
||||
|
||||
|
@ -462,7 +462,7 @@ func (f *federatingDB) rejectLikeIRI(
|
|||
case req.IsRejected():
|
||||
// Interaction has already been rejected. Just
|
||||
// update to this Reject URI and then return early.
|
||||
req.URI = activityID
|
||||
req.ResponseURI = activityID
|
||||
if err := f.state.DB.UpdateInteractionRequest(ctx, req, "uri"); err != nil {
|
||||
err := gtserror.Newf("db error updating interaction request: %w", err)
|
||||
return gtserror.NewErrorInternalError(err)
|
||||
|
@ -474,7 +474,7 @@ func (f *federatingDB) rejectLikeIRI(
|
|||
// Rejected, even if previously Accepted.
|
||||
req.AcceptedAt = time.Time{}
|
||||
req.RejectedAt = time.Now()
|
||||
req.URI = activityID
|
||||
req.ResponseURI = activityID
|
||||
if err := f.state.DB.UpdateInteractionRequest(ctx, req,
|
||||
"accepted_at",
|
||||
"rejected_at",
|
||||
|
|
|
@ -99,6 +99,9 @@ func NewFederator(
|
|||
federatingDB.Announce,
|
||||
federatingDB.Move,
|
||||
federatingDB.Flag,
|
||||
federatingDB.LikeRequest,
|
||||
federatingDB.ReplyRequest,
|
||||
federatingDB.AnnounceRequest,
|
||||
},
|
||||
}
|
||||
actor := newFederatingActor(f, f, federatingDB, clock)
|
||||
|
|
|
@ -78,8 +78,8 @@ func (f *Filter) StatusLikeable(
|
|||
// always like their own status,
|
||||
// no need for further checks.
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: util.Ptr(gtsmodel.PolicyValueAuthor),
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: util.Ptr(gtsmodel.PolicyValueAuthor),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ func (f *Filter) StatusLikeable(
|
|||
// about interaction policies, and just return OK.
|
||||
default:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ func (f *Filter) StatusReplyable(
|
|||
// and having the reply-to-their-own-reply go
|
||||
// through as Permitted. None of that!
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionWithApproval,
|
||||
Permission: gtsmodel.PolicyPermissionManualApproval,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
@ -163,8 +163,8 @@ func (f *Filter) StatusReplyable(
|
|||
// always reply to their own status,
|
||||
// no need for further checks.
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: util.Ptr(gtsmodel.PolicyValueAuthor),
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: util.Ptr(gtsmodel.PolicyValueAuthor),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -173,8 +173,8 @@ func (f *Filter) StatusReplyable(
|
|||
// to them being mentioned, and easier to check!
|
||||
if status.InReplyToAccountID == requester.ID {
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: util.Ptr(gtsmodel.PolicyValueMentioned),
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: util.Ptr(gtsmodel.PolicyValueMentioned),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -229,8 +229,8 @@ func (f *Filter) StatusReplyable(
|
|||
// A mentioned account can always
|
||||
// reply, no need for further checks.
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: util.Ptr(gtsmodel.PolicyValueMentioned),
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: util.Ptr(gtsmodel.PolicyValueMentioned),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -261,7 +261,7 @@ func (f *Filter) StatusReplyable(
|
|||
// about interaction policies, and just return OK.
|
||||
default:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
@ -291,8 +291,8 @@ func (f *Filter) StatusBoostable(
|
|||
// always boost non-directs,
|
||||
// no need for further checks.
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: util.Ptr(gtsmodel.PolicyValueAuthor),
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: util.Ptr(gtsmodel.PolicyValueAuthor),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -324,7 +324,7 @@ func (f *Filter) StatusBoostable(
|
|||
case status.Visibility == gtsmodel.VisibilityPublic ||
|
||||
status.Visibility == gtsmodel.VisibilityUnlocked:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
}, nil
|
||||
|
||||
// Not permitted by any of the
|
||||
|
@ -353,7 +353,7 @@ func (f *Filter) checkPolicy(
|
|||
matchAlways, matchAlwaysValue, err := f.matchPolicy(fctx,
|
||||
requester,
|
||||
status,
|
||||
rules.Always,
|
||||
rules.AutomaticApproval,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, gtserror.Newf("error checking policy match: %w", err)
|
||||
|
@ -364,7 +364,7 @@ func (f *Filter) checkPolicy(
|
|||
matchWithApproval, _, err := f.matchPolicy(fctx,
|
||||
requester,
|
||||
status,
|
||||
rules.WithApproval,
|
||||
rules.ManualApproval,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, gtserror.Newf("error checking policy approval match: %w", err)
|
||||
|
@ -376,26 +376,26 @@ func (f *Filter) checkPolicy(
|
|||
// prioritizing "always".
|
||||
case matchAlways == explicit:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: &matchAlwaysValue,
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: &matchAlwaysValue,
|
||||
}, nil
|
||||
|
||||
case matchWithApproval == explicit:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionWithApproval,
|
||||
Permission: gtsmodel.PolicyPermissionManualApproval,
|
||||
}, nil
|
||||
|
||||
// Then try implicit match,
|
||||
// prioritizing "always".
|
||||
case matchAlways == implicit:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionPermitted,
|
||||
PermittedMatchedOn: &matchAlwaysValue,
|
||||
Permission: gtsmodel.PolicyPermissionAutomaticApproval,
|
||||
PermissionMatchedOn: &matchAlwaysValue,
|
||||
}, nil
|
||||
|
||||
case matchWithApproval == implicit:
|
||||
return >smodel.PolicyCheckResult{
|
||||
Permission: gtsmodel.PolicyPermissionWithApproval,
|
||||
Permission: gtsmodel.PolicyPermissionManualApproval,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -29,22 +29,47 @@ const (
|
|||
// If you need to add new interaction types,
|
||||
// add them *to the end* of the list.
|
||||
|
||||
/*
|
||||
Types for when a requester straight up
|
||||
sends a Like or a Create or an Announce.
|
||||
|
||||
In this case we will have the Like or the
|
||||
Reply or the Announce stored in the db
|
||||
marked as pending or whatever.
|
||||
*/
|
||||
|
||||
InteractionLike InteractionType = iota
|
||||
InteractionReply
|
||||
InteractionAnnounce
|
||||
|
||||
/*
|
||||
Types for when a requester politely sends
|
||||
an XyzRequest asking for permission first.
|
||||
|
||||
In this case we don't store a Like or an
|
||||
Announce in the db, as they don't exist yet,
|
||||
but we do store a Reply if reply is pending
|
||||
approval (for review) or approved, as the
|
||||
proposed reply should have been sent along
|
||||
as the object of the ReplyRequest.
|
||||
*/
|
||||
|
||||
InteractionLikeRequest
|
||||
InteractionReplyRequest
|
||||
InteractionAnnounceRequest
|
||||
)
|
||||
|
||||
// Stringifies this InteractionType in a
|
||||
// manner suitable for serving via the API.
|
||||
func (i InteractionType) String() string {
|
||||
switch i {
|
||||
case InteractionLike:
|
||||
case InteractionLike, InteractionLikeRequest:
|
||||
const text = "favourite"
|
||||
return text
|
||||
case InteractionReply:
|
||||
case InteractionReply, InteractionReplyRequest:
|
||||
const text = "reply"
|
||||
return text
|
||||
case InteractionAnnounce:
|
||||
case InteractionAnnounce, InteractionAnnounceRequest:
|
||||
const text = "reblog"
|
||||
return text
|
||||
default:
|
||||
|
@ -64,10 +89,10 @@ type InteractionRequest struct {
|
|||
TargetAccount *Account `bun:"-"` // Not stored in DB. Account being interacted with.
|
||||
InteractingAccountID string `bun:"type:CHAR(26),nullzero,notnull"` // id of the account requesting the interaction.
|
||||
InteractingAccount *Account `bun:"-"` // Not stored in DB. Account corresponding to targetAccountID
|
||||
InteractionURI string `bun:",nullzero,notnull,unique"` // URI of the interacting like, reply, or announce. Unique (only one interaction request allowed per interaction URI).
|
||||
InteractionURI string `bun:",nullzero,notnull,unique"` // URI of the interacting like (request), reply (request), or announce (request). Unique (only one interaction request allowed per interaction URI).
|
||||
InteractionType InteractionType `bun:",notnull"` // One of Like, Reply, or Announce.
|
||||
Like *StatusFave `bun:"-"` // Not stored in DB. Only set if InteractionType = InteractionLike.
|
||||
Reply *Status `bun:"-"` // Not stored in DB. Only set if InteractionType = InteractionReply.
|
||||
Reply *Status `bun:"-"` // Not stored in DB. Only set if InteractionType = InteractionReply or InteractionType = InteractionReplyRequest.
|
||||
Announce *Status `bun:"-"` // Not stored in DB. Only set if InteractionType = InteractionAnnounce.
|
||||
AcceptedAt time.Time `bun:"type:timestamptz,nullzero"` // If interaction request was accepted, time at which this occurred.
|
||||
RejectedAt time.Time `bun:"type:timestamptz,nullzero"` // If interaction request was rejected, time at which this occurred.
|
||||
|
@ -75,7 +100,7 @@ type InteractionRequest struct {
|
|||
// ActivityPub URI of the Accept (if accepted) or Reject (if rejected).
|
||||
// Field may be empty if currently neither accepted not rejected, or if
|
||||
// acceptance/rejection was implicit (ie., not resulting from an Activity).
|
||||
URI string `bun:",nullzero,unique"`
|
||||
ResponseURI string `bun:"uri,nullzero,unique"`
|
||||
}
|
||||
|
||||
// IsHandled returns true if interaction
|
||||
|
|
|
@ -123,10 +123,10 @@ const (
|
|||
// Interaction is conditionally permitted
|
||||
// for this PolicyValue + interaction combo,
|
||||
// pending approval by the item owner.
|
||||
PolicyPermissionWithApproval
|
||||
PolicyPermissionManualApproval
|
||||
// Interaction is permitted for this
|
||||
// PolicyValue + interaction combination.
|
||||
PolicyPermissionPermitted
|
||||
PolicyPermissionAutomaticApproval
|
||||
)
|
||||
|
||||
// PolicyCheckResult encapsulates the results
|
||||
|
@ -138,39 +138,39 @@ type PolicyCheckResult struct {
|
|||
Permission PolicyPermission
|
||||
|
||||
// Value that this check matched on.
|
||||
// Only set if Permission = permitted.
|
||||
PermittedMatchedOn *PolicyValue
|
||||
// Only set if Permission = automatic.
|
||||
PermissionMatchedOn *PolicyValue
|
||||
}
|
||||
|
||||
// MatchedOnCollection returns true if this policy check
|
||||
// result turned up Permitted, and matched based on the
|
||||
// result turned up AutomaticApproval, and matched based on the
|
||||
// requester's presence in a followers or following collection.
|
||||
func (pcr *PolicyCheckResult) MatchedOnCollection() bool {
|
||||
if !pcr.Permitted() {
|
||||
if !pcr.AutomaticApproval() {
|
||||
// Not permitted at all
|
||||
// so definitely didn't
|
||||
// match on collection.
|
||||
return false
|
||||
}
|
||||
|
||||
if pcr.PermittedMatchedOn == nil {
|
||||
if pcr.PermissionMatchedOn == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return *pcr.PermittedMatchedOn == PolicyValueFollowers ||
|
||||
*pcr.PermittedMatchedOn == PolicyValueFollowing
|
||||
return *pcr.PermissionMatchedOn == PolicyValueFollowers ||
|
||||
*pcr.PermissionMatchedOn == PolicyValueFollowing
|
||||
}
|
||||
|
||||
// AutomaticApproval returns true if this policy
|
||||
// check resulted in Permission = automatic approval.
|
||||
func (pcr *PolicyCheckResult) AutomaticApproval() bool {
|
||||
return pcr.Permission == PolicyPermissionAutomaticApproval
|
||||
}
|
||||
|
||||
// Permitted returns true if this policy
|
||||
// check resulted in Permission = permitted.
|
||||
func (pcr *PolicyCheckResult) Permitted() bool {
|
||||
return pcr.Permission == PolicyPermissionPermitted
|
||||
}
|
||||
|
||||
// Permitted returns true if this policy
|
||||
// check resulted in Permission = with approval.
|
||||
func (pcr *PolicyCheckResult) WithApproval() bool {
|
||||
return pcr.Permission == PolicyPermissionWithApproval
|
||||
// check resulted in Permission = manual approval.
|
||||
func (pcr *PolicyCheckResult) ManualApproval() bool {
|
||||
return pcr.Permission == PolicyPermissionManualApproval
|
||||
}
|
||||
|
||||
// Permitted returns true if this policy
|
||||
|
@ -201,14 +201,22 @@ type InteractionPolicy struct {
|
|||
// to which a certain interaction is permitted
|
||||
// to various Actor and Actor Collection URIs.
|
||||
type PolicyRules struct {
|
||||
// Always is for PolicyValues who are
|
||||
// permitted to do an interaction
|
||||
// without requiring approval.
|
||||
Always PolicyValues
|
||||
// WithApproval is for PolicyValues who
|
||||
// are conditionally permitted to do
|
||||
// an interaction, pending approval.
|
||||
WithApproval PolicyValues
|
||||
// AutomaticApproval is for PolicyValue entries
|
||||
// that are pre-approved to do an interaction
|
||||
// and will receive automatic approval.
|
||||
//
|
||||
// Note: This is stored in the db as JSON.
|
||||
// JSON tags set for back compat with previous
|
||||
// (now deprecated) name for this PolicyValues.
|
||||
AutomaticApproval PolicyValues `json:"Always,omitempty"`
|
||||
// ManualApproval is for PolicyValues entries
|
||||
// that are conditionally permitted to do
|
||||
// an interaction, pending manual approval.
|
||||
//
|
||||
// Note: This is stored in the db as JSON.
|
||||
// JSON tags set for back compat with previous
|
||||
// (now deprecated) name for this PolicyValues.
|
||||
ManualApproval PolicyValues `json:"WithApproval,omitempty"`
|
||||
}
|
||||
|
||||
// Returns the default interaction policy
|
||||
|
@ -231,24 +239,24 @@ func DefaultInteractionPolicyFor(v Visibility) *InteractionPolicy {
|
|||
var defaultPolicyPublic = &InteractionPolicy{
|
||||
CanLike: PolicyRules{
|
||||
// Anyone can like.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValuePublic,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
CanReply: PolicyRules{
|
||||
// Anyone can reply.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValuePublic,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
CanAnnounce: PolicyRules{
|
||||
// Anyone can announce.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValuePublic,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -269,29 +277,29 @@ var defaultPolicyFollowersOnly = &InteractionPolicy{
|
|||
CanLike: PolicyRules{
|
||||
// Self, followers and
|
||||
// mentioned can like.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValueAuthor,
|
||||
PolicyValueFollowers,
|
||||
PolicyValueMentioned,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
CanReply: PolicyRules{
|
||||
// Self, followers and
|
||||
// mentioned can reply.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValueAuthor,
|
||||
PolicyValueFollowers,
|
||||
PolicyValueMentioned,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
CanAnnounce: PolicyRules{
|
||||
// Only self can announce.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValueAuthor,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -305,27 +313,27 @@ var defaultPolicyDirect = &InteractionPolicy{
|
|||
CanLike: PolicyRules{
|
||||
// Mentioned and self
|
||||
// can always like.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValueAuthor,
|
||||
PolicyValueMentioned,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
CanReply: PolicyRules{
|
||||
// Mentioned and self
|
||||
// can always reply.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValueAuthor,
|
||||
PolicyValueMentioned,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
CanAnnounce: PolicyRules{
|
||||
// Only self can announce.
|
||||
Always: PolicyValues{
|
||||
AutomaticApproval: PolicyValues{
|
||||
PolicyValueAuthor,
|
||||
},
|
||||
WithApproval: make(PolicyValues, 0),
|
||||
ManualApproval: make(PolicyValues, 0),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@ package gtsmodel
|
|||
|
||||
import "time"
|
||||
|
||||
// StatusFave refers to a 'fave' or 'like' in the database, from one account, targeting the status of another account
|
||||
// StatusFave refers to a 'fave' or 'like' in the database,
|
||||
// from one account, targeting the status of another account
|
||||
type StatusFave struct {
|
||||
ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"` // id of this item in the database
|
||||
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item created
|
||||
|
|
|
@ -67,7 +67,7 @@ func (p *Processor) Accept(
|
|||
// Mark the request as accepted
|
||||
// and generate a URI for it.
|
||||
req.AcceptedAt = time.Now()
|
||||
req.URI = uris.GenerateURIForAccept(acct.Username, req.ID)
|
||||
req.ResponseURI = uris.GenerateURIForAccept(acct.Username, req.ID)
|
||||
if err := p.state.DB.UpdateInteractionRequest(
|
||||
ctx,
|
||||
req,
|
||||
|
@ -132,7 +132,7 @@ func (p *Processor) acceptLike(
|
|||
// Update the Like.
|
||||
req.Like.PendingApproval = util.Ptr(false)
|
||||
req.Like.PreApproved = false
|
||||
req.Like.ApprovedByURI = req.URI
|
||||
req.Like.ApprovedByURI = req.ResponseURI
|
||||
if err := p.state.DB.UpdateStatusFave(
|
||||
ctx,
|
||||
req.Like,
|
||||
|
@ -173,7 +173,7 @@ func (p *Processor) acceptReply(
|
|||
// Update the Reply.
|
||||
req.Reply.PendingApproval = util.Ptr(false)
|
||||
req.Reply.PreApproved = false
|
||||
req.Reply.ApprovedByURI = req.URI
|
||||
req.Reply.ApprovedByURI = req.ResponseURI
|
||||
if err := p.state.DB.UpdateStatus(
|
||||
ctx,
|
||||
req.Reply,
|
||||
|
@ -214,7 +214,7 @@ func (p *Processor) acceptAnnounce(
|
|||
// Update the Announce.
|
||||
req.Announce.PendingApproval = util.Ptr(false)
|
||||
req.Announce.PreApproved = false
|
||||
req.Announce.ApprovedByURI = req.URI
|
||||
req.Announce.ApprovedByURI = req.ResponseURI
|
||||
if err := p.state.DB.UpdateStatus(
|
||||
ctx,
|
||||
req.Announce,
|
||||
|
|
|
@ -68,7 +68,7 @@ func (suite *AcceptTestSuite) TestAccept() {
|
|||
suite.FailNow(err.Error())
|
||||
}
|
||||
suite.False(*dbStatus.PendingApproval)
|
||||
suite.Equal(dbReq.URI, dbStatus.ApprovedByURI)
|
||||
suite.Equal(dbReq.ResponseURI, dbStatus.ApprovedByURI)
|
||||
|
||||
// Wait for a notification
|
||||
// for interacting status.
|
||||
|
|
|
@ -66,7 +66,7 @@ func (p *Processor) Reject(
|
|||
// Mark the request as rejected
|
||||
// and generate a URI for it.
|
||||
req.RejectedAt = time.Now()
|
||||
req.URI = uris.GenerateURIForReject(acct.Username, req.ID)
|
||||
req.ResponseURI = uris.GenerateURIForReject(acct.Username, req.ID)
|
||||
if err := p.state.DB.UpdateInteractionRequest(
|
||||
ctx,
|
||||
req,
|
||||
|
|
|
@ -96,7 +96,7 @@ func (p *Processor) BoostCreate(
|
|||
// Derive pendingApproval status.
|
||||
var pendingApproval bool
|
||||
switch {
|
||||
case policyResult.WithApproval():
|
||||
case policyResult.ManualApproval():
|
||||
// We're allowed to do
|
||||
// this pending approval.
|
||||
pendingApproval = true
|
||||
|
@ -117,7 +117,7 @@ func (p *Processor) BoostCreate(
|
|||
boost.PreApproved = true
|
||||
}
|
||||
|
||||
case policyResult.Permitted():
|
||||
case policyResult.AutomaticApproval():
|
||||
// We're permitted to do this
|
||||
// based on another kind of match.
|
||||
pendingApproval = false
|
||||
|
|
|
@ -407,7 +407,7 @@ func (p *Processor) processInReplyTo(
|
|||
// Derive pendingApproval status.
|
||||
var pendingApproval bool
|
||||
switch {
|
||||
case policyResult.WithApproval():
|
||||
case policyResult.ManualApproval():
|
||||
// We're allowed to do
|
||||
// this pending approval.
|
||||
pendingApproval = true
|
||||
|
@ -428,7 +428,7 @@ func (p *Processor) processInReplyTo(
|
|||
status.PreApproved = true
|
||||
}
|
||||
|
||||
case policyResult.Permitted():
|
||||
case policyResult.AutomaticApproval():
|
||||
// We're permitted to do this
|
||||
// based on another kind of match.
|
||||
pendingApproval = false
|
||||
|
|
|
@ -112,7 +112,7 @@ func (p *Processor) FaveCreate(
|
|||
)
|
||||
|
||||
switch {
|
||||
case policyResult.WithApproval():
|
||||
case policyResult.ManualApproval():
|
||||
// We're allowed to do
|
||||
// this pending approval.
|
||||
pendingApproval = true
|
||||
|
@ -133,7 +133,7 @@ func (p *Processor) FaveCreate(
|
|||
preApproved = true
|
||||
}
|
||||
|
||||
case policyResult.Permitted():
|
||||
case policyResult.AutomaticApproval():
|
||||
// We're permitted to do this
|
||||
// based on another kind of match.
|
||||
pendingApproval = false
|
||||
|
|
|
@ -287,7 +287,7 @@ func (p *clientAPI) CreateStatus(ctx context.Context, cMsg *messages.FromClientA
|
|||
// and/or notify the account that's being
|
||||
// interacted with (if it's local): they can
|
||||
// approve or deny the interaction later.
|
||||
if err := p.utils.requestReply(ctx, status); err != nil {
|
||||
if err := p.utils.replyToRequestReply(ctx, status); err != nil {
|
||||
return gtserror.Newf("error pending reply: %w", err)
|
||||
}
|
||||
|
||||
|
@ -321,7 +321,7 @@ func (p *clientAPI) CreateStatus(ctx context.Context, cMsg *messages.FromClientA
|
|||
InteractionURI: status.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Reply: status,
|
||||
URI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id),
|
||||
ResponseURI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id),
|
||||
AcceptedAt: time.Now(),
|
||||
}
|
||||
if err := p.state.DB.PutInteractionRequest(ctx, approval); err != nil {
|
||||
|
@ -331,7 +331,7 @@ func (p *clientAPI) CreateStatus(ctx context.Context, cMsg *messages.FromClientA
|
|||
// Mark the status as now approved.
|
||||
status.PendingApproval = util.Ptr(false)
|
||||
status.PreApproved = false
|
||||
status.ApprovedByURI = approval.URI
|
||||
status.ApprovedByURI = approval.ResponseURI
|
||||
if err := p.state.DB.UpdateStatus(
|
||||
ctx,
|
||||
status,
|
||||
|
@ -494,7 +494,7 @@ func (p *clientAPI) CreateLike(ctx context.Context, cMsg *messages.FromClientAPI
|
|||
// and/or notify the account that's being
|
||||
// interacted with (if it's local): they can
|
||||
// approve or deny the interaction later.
|
||||
if err := p.utils.requestFave(ctx, fave); err != nil {
|
||||
if err := p.utils.faveToRequestFave(ctx, fave); err != nil {
|
||||
return gtserror.Newf("error pending fave: %w", err)
|
||||
}
|
||||
|
||||
|
@ -528,7 +528,7 @@ func (p *clientAPI) CreateLike(ctx context.Context, cMsg *messages.FromClientAPI
|
|||
InteractionURI: fave.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Like: fave,
|
||||
URI: uris.GenerateURIForAccept(fave.TargetAccount.Username, id),
|
||||
ResponseURI: uris.GenerateURIForAccept(fave.TargetAccount.Username, id),
|
||||
AcceptedAt: time.Now(),
|
||||
}
|
||||
if err := p.state.DB.PutInteractionRequest(ctx, approval); err != nil {
|
||||
|
@ -538,7 +538,7 @@ func (p *clientAPI) CreateLike(ctx context.Context, cMsg *messages.FromClientAPI
|
|||
// Mark the fave itself as now approved.
|
||||
fave.PendingApproval = util.Ptr(false)
|
||||
fave.PreApproved = false
|
||||
fave.ApprovedByURI = approval.URI
|
||||
fave.ApprovedByURI = approval.ResponseURI
|
||||
if err := p.state.DB.UpdateStatusFave(
|
||||
ctx,
|
||||
fave,
|
||||
|
@ -555,7 +555,11 @@ func (p *clientAPI) CreateLike(ctx context.Context, cMsg *messages.FromClientAPI
|
|||
// Don't return, just continue as normal.
|
||||
}
|
||||
|
||||
if err := p.surface.notifyFave(ctx, fave); err != nil {
|
||||
if err := p.surface.notifyFave(ctx,
|
||||
fave.Account,
|
||||
fave.TargetAccount,
|
||||
fave.Status,
|
||||
); err != nil {
|
||||
log.Errorf(ctx, "error notifying fave: %v", err)
|
||||
}
|
||||
|
||||
|
@ -589,7 +593,7 @@ func (p *clientAPI) CreateAnnounce(ctx context.Context, cMsg *messages.FromClien
|
|||
// and/or notify the account that's being
|
||||
// interacted with (if it's local): they can
|
||||
// approve or deny the interaction later.
|
||||
if err := p.utils.requestAnnounce(ctx, boost); err != nil {
|
||||
if err := p.utils.announceToRequestAnnounce(ctx, boost); err != nil {
|
||||
return gtserror.Newf("error pending boost: %w", err)
|
||||
}
|
||||
|
||||
|
@ -623,7 +627,7 @@ func (p *clientAPI) CreateAnnounce(ctx context.Context, cMsg *messages.FromClien
|
|||
InteractionURI: boost.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Announce: boost,
|
||||
URI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id),
|
||||
ResponseURI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id),
|
||||
AcceptedAt: time.Now(),
|
||||
}
|
||||
if err := p.state.DB.PutInteractionRequest(ctx, approval); err != nil {
|
||||
|
@ -633,7 +637,7 @@ func (p *clientAPI) CreateAnnounce(ctx context.Context, cMsg *messages.FromClien
|
|||
// Mark the boost itself as now approved.
|
||||
boost.PendingApproval = util.Ptr(false)
|
||||
boost.PreApproved = false
|
||||
boost.ApprovedByURI = approval.URI
|
||||
boost.ApprovedByURI = approval.ResponseURI
|
||||
if err := p.state.DB.UpdateStatus(
|
||||
ctx,
|
||||
boost,
|
||||
|
@ -1157,8 +1161,18 @@ func (p *clientAPI) AcceptLike(ctx context.Context, cMsg *messages.FromClientAPI
|
|||
return gtserror.Newf("%T not parseable as *gtsmodel.InteractionRequest", cMsg.GTSModel)
|
||||
}
|
||||
|
||||
// Notify the fave (distinct from the notif for the pending fave).
|
||||
if err := p.surface.notifyFave(ctx, req.Like); err != nil {
|
||||
// Ensure fave populated.
|
||||
if err := p.state.DB.PopulateStatusFave(ctx, req.Like); err != nil {
|
||||
return gtserror.Newf("error populating status fave: %w", err)
|
||||
}
|
||||
|
||||
// Notify the fave (distinct from
|
||||
// the notif for the pending fave).
|
||||
if err := p.surface.notifyFave(ctx,
|
||||
req.Like.Account,
|
||||
req.Like.TargetAccount,
|
||||
req.Like.Status,
|
||||
); err != nil {
|
||||
log.Errorf(ctx, "error notifying fave: %v", err)
|
||||
}
|
||||
|
||||
|
|
|
@ -96,6 +96,10 @@ func (p *Processor) ProcessFromFediAPI(ctx context.Context, fMsg *messages.FromF
|
|||
case ap.ActivityLike:
|
||||
return p.fediAPI.CreateLike(ctx, fMsg)
|
||||
|
||||
// CREATE LIKE/FAVE REQUEST
|
||||
case ap.ActivityLikeRequest:
|
||||
return p.fediAPI.CreateLikeRequest(ctx, fMsg)
|
||||
|
||||
// CREATE ANNOUNCE/BOOST
|
||||
case ap.ActivityAnnounce:
|
||||
return p.fediAPI.CreateAnnounce(ctx, fMsg)
|
||||
|
@ -278,7 +282,7 @@ func (p *fediAPI) CreateStatus(ctx context.Context, fMsg *messages.FromFediAPI)
|
|||
// preapproved, then just notify the account
|
||||
// that's being interacted with: they can
|
||||
// approve or deny the interaction later.
|
||||
if err := p.utils.requestReply(ctx, status); err != nil {
|
||||
if err := p.utils.replyToRequestReply(ctx, status); err != nil {
|
||||
return gtserror.Newf("error pending reply: %w", err)
|
||||
}
|
||||
|
||||
|
@ -305,7 +309,7 @@ func (p *fediAPI) CreateStatus(ctx context.Context, fMsg *messages.FromFediAPI)
|
|||
InteractionURI: status.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Reply: status,
|
||||
URI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id),
|
||||
ResponseURI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id),
|
||||
AcceptedAt: time.Now(),
|
||||
}
|
||||
if err := p.state.DB.PutInteractionRequest(ctx, approval); err != nil {
|
||||
|
@ -315,7 +319,7 @@ func (p *fediAPI) CreateStatus(ctx context.Context, fMsg *messages.FromFediAPI)
|
|||
// Mark the status as now approved.
|
||||
status.PendingApproval = util.Ptr(false)
|
||||
status.PreApproved = false
|
||||
status.ApprovedByURI = approval.URI
|
||||
status.ApprovedByURI = approval.ResponseURI
|
||||
if err := p.state.DB.UpdateStatus(
|
||||
ctx,
|
||||
status,
|
||||
|
@ -512,7 +516,7 @@ func (p *fediAPI) CreateLike(ctx context.Context, fMsg *messages.FromFediAPI) er
|
|||
// preapproved, then just notify the account
|
||||
// that's being interacted with: they can
|
||||
// approve or deny the interaction later.
|
||||
if err := p.utils.requestFave(ctx, fave); err != nil {
|
||||
if err := p.utils.faveToRequestFave(ctx, fave); err != nil {
|
||||
return gtserror.Newf("error pending fave: %w", err)
|
||||
}
|
||||
|
||||
|
@ -539,7 +543,7 @@ func (p *fediAPI) CreateLike(ctx context.Context, fMsg *messages.FromFediAPI) er
|
|||
InteractionURI: fave.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Like: fave,
|
||||
URI: uris.GenerateURIForAccept(fave.TargetAccount.Username, id),
|
||||
ResponseURI: uris.GenerateURIForAccept(fave.TargetAccount.Username, id),
|
||||
AcceptedAt: time.Now(),
|
||||
}
|
||||
if err := p.state.DB.PutInteractionRequest(ctx, approval); err != nil {
|
||||
|
@ -549,7 +553,7 @@ func (p *fediAPI) CreateLike(ctx context.Context, fMsg *messages.FromFediAPI) er
|
|||
// Mark the fave itself as now approved.
|
||||
fave.PendingApproval = util.Ptr(false)
|
||||
fave.PreApproved = false
|
||||
fave.ApprovedByURI = approval.URI
|
||||
fave.ApprovedByURI = approval.ResponseURI
|
||||
if err := p.state.DB.UpdateStatusFave(
|
||||
ctx,
|
||||
fave,
|
||||
|
@ -567,7 +571,11 @@ func (p *fediAPI) CreateLike(ctx context.Context, fMsg *messages.FromFediAPI) er
|
|||
// Don't return, just continue as normal.
|
||||
}
|
||||
|
||||
if err := p.surface.notifyFave(ctx, fave); err != nil {
|
||||
if err := p.surface.notifyFave(ctx,
|
||||
fave.Account,
|
||||
fave.TargetAccount,
|
||||
fave.Status,
|
||||
); err != nil {
|
||||
log.Errorf(ctx, "error notifying fave: %v", err)
|
||||
}
|
||||
|
||||
|
@ -619,7 +627,7 @@ func (p *fediAPI) CreateAnnounce(ctx context.Context, fMsg *messages.FromFediAPI
|
|||
// preapproved, then just notify the account
|
||||
// that's being interacted with: they can
|
||||
// approve or deny the interaction later.
|
||||
if err := p.utils.requestAnnounce(ctx, boost); err != nil {
|
||||
if err := p.utils.announceToRequestAnnounce(ctx, boost); err != nil {
|
||||
return gtserror.Newf("error pending boost: %w", err)
|
||||
}
|
||||
|
||||
|
@ -646,7 +654,7 @@ func (p *fediAPI) CreateAnnounce(ctx context.Context, fMsg *messages.FromFediAPI
|
|||
InteractionURI: boost.URI,
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
Announce: boost,
|
||||
URI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id),
|
||||
ResponseURI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id),
|
||||
AcceptedAt: time.Now(),
|
||||
}
|
||||
if err := p.state.DB.PutInteractionRequest(ctx, approval); err != nil {
|
||||
|
@ -656,7 +664,7 @@ func (p *fediAPI) CreateAnnounce(ctx context.Context, fMsg *messages.FromFediAPI
|
|||
// Mark the boost itself as now approved.
|
||||
boost.PendingApproval = util.Ptr(false)
|
||||
boost.PreApproved = false
|
||||
boost.ApprovedByURI = approval.URI
|
||||
boost.ApprovedByURI = approval.ResponseURI
|
||||
if err := p.state.DB.UpdateStatus(
|
||||
ctx,
|
||||
boost,
|
||||
|
@ -1238,3 +1246,22 @@ func (p *fediAPI) UndoAnnounce(
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *fediAPI) CreateLikeRequest(
|
||||
ctx context.Context,
|
||||
fMsg *messages.FromFediAPI,
|
||||
) error {
|
||||
interactionReq, ok := fMsg.GTSModel.(*gtsmodel.InteractionRequest)
|
||||
if !ok {
|
||||
return gtserror.Newf("%T not parseable as *gtsmodel.InteractionRequest", fMsg.GTSModel)
|
||||
}
|
||||
|
||||
if interactionReq.IsPending() {
|
||||
// If pending, ie., manual approval
|
||||
// required, just store the request,
|
||||
// notify the interactee, and return.
|
||||
asfasfasf
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -235,9 +235,15 @@ func (s *Surface) notifyFollow(
|
|||
// fave that their status has been liked/faved.
|
||||
func (s *Surface) notifyFave(
|
||||
ctx context.Context,
|
||||
fave *gtsmodel.StatusFave,
|
||||
account *gtsmodel.Account,
|
||||
targetAccount *gtsmodel.Account,
|
||||
status *gtsmodel.Status,
|
||||
) error {
|
||||
notifyable, err := s.notifyableFave(ctx, fave)
|
||||
notifyable, err := s.notifyableFave(ctx,
|
||||
account,
|
||||
targetAccount,
|
||||
status,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -251,11 +257,11 @@ func (s *Surface) notifyFave(
|
|||
// of fave by account.
|
||||
if err := s.Notify(ctx,
|
||||
gtsmodel.NotificationFavourite,
|
||||
fave.TargetAccount,
|
||||
fave.Account,
|
||||
fave.StatusID,
|
||||
targetAccount,
|
||||
account,
|
||||
status.ID,
|
||||
); err != nil {
|
||||
return gtserror.Newf("error notifying status author %s: %w", fave.TargetAccountID, err)
|
||||
return gtserror.Newf("error notifying status author %s: %w", targetAccount.ID, err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -266,9 +272,15 @@ func (s *Surface) notifyFave(
|
|||
// and that approval is required.
|
||||
func (s *Surface) notifyPendingFave(
|
||||
ctx context.Context,
|
||||
fave *gtsmodel.StatusFave,
|
||||
account *gtsmodel.Account,
|
||||
targetAccount *gtsmodel.Account,
|
||||
status *gtsmodel.Status,
|
||||
) error {
|
||||
notifyable, err := s.notifyableFave(ctx, fave)
|
||||
notifyable, err := s.notifyableFave(ctx,
|
||||
account,
|
||||
targetAccount,
|
||||
status,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -282,11 +294,11 @@ func (s *Surface) notifyPendingFave(
|
|||
// of fave by account.
|
||||
if err := s.Notify(ctx,
|
||||
gtsmodel.NotificationPendingFave,
|
||||
fave.TargetAccount,
|
||||
fave.Account,
|
||||
fave.StatusID,
|
||||
targetAccount,
|
||||
account,
|
||||
status.ID,
|
||||
); err != nil {
|
||||
return gtserror.Newf("error notifying status author %s: %w", fave.TargetAccountID, err)
|
||||
return gtserror.Newf("error notifying status author %s: %w", targetAccount.ID, err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -297,19 +309,16 @@ func (s *Surface) notifyPendingFave(
|
|||
// of localness of receiving account, and mutes.
|
||||
func (s *Surface) notifyableFave(
|
||||
ctx context.Context,
|
||||
fave *gtsmodel.StatusFave,
|
||||
account *gtsmodel.Account,
|
||||
targetAccount *gtsmodel.Account,
|
||||
status *gtsmodel.Status,
|
||||
) (bool, error) {
|
||||
if fave.TargetAccountID == fave.AccountID {
|
||||
if targetAccount.ID == account.ID {
|
||||
// Self-fave, nothing to do.
|
||||
return false, nil
|
||||
}
|
||||
|
||||
// Beforehand, ensure the passed status fave is fully populated.
|
||||
if err := s.State.DB.PopulateStatusFave(ctx, fave); err != nil {
|
||||
return false, gtserror.Newf("error populating fave %s: %w", fave.ID, err)
|
||||
}
|
||||
|
||||
if fave.TargetAccount.IsRemote() {
|
||||
if targetAccount.IsRemote() {
|
||||
// no need to notify
|
||||
// remote accounts.
|
||||
return false, nil
|
||||
|
@ -319,11 +328,11 @@ func (s *Surface) notifyableFave(
|
|||
// muted the thread.
|
||||
muted, err := s.State.DB.IsThreadMutedByAccount(
|
||||
ctx,
|
||||
fave.Status.ThreadID,
|
||||
fave.TargetAccountID,
|
||||
status.ThreadID,
|
||||
targetAccount.ID,
|
||||
)
|
||||
if err != nil {
|
||||
return false, gtserror.Newf("error checking status thread mute %s: %w", fave.StatusID, err)
|
||||
return false, gtserror.Newf("error checking status thread mute %s: %w", status.ID, err)
|
||||
}
|
||||
|
||||
if muted {
|
||||
|
|
|
@ -530,9 +530,14 @@ func (u *utils) decrementFollowRequestsCount(
|
|||
return nil
|
||||
}
|
||||
|
||||
// requestFave stores an interaction request
|
||||
// faveToRequestFave stores an interaction request
|
||||
// for the given fave, and notifies the interactee.
|
||||
func (u *utils) requestFave(
|
||||
//
|
||||
// This is useful when a local account needs to send
|
||||
// out a LikeRequest, or when a remote account has
|
||||
// sent us a Like instead of a LikeRequest for a
|
||||
// status where Liking requires approval.
|
||||
func (u *utils) faveToRequestFave(
|
||||
ctx context.Context,
|
||||
fave *gtsmodel.StatusFave,
|
||||
) error {
|
||||
|
@ -565,17 +570,26 @@ func (u *utils) requestFave(
|
|||
return gtserror.Newf("db error storing interaction request: %w", err)
|
||||
}
|
||||
|
||||
// Notify *local* account of pending announce.
|
||||
if err := u.surface.notifyPendingFave(ctx, fave); err != nil {
|
||||
// Notify *local* account of pending fave.
|
||||
if err := u.surface.notifyPendingFave(ctx,
|
||||
fave.Account,
|
||||
fave.TargetAccount,
|
||||
fave.Status,
|
||||
); err != nil {
|
||||
return gtserror.Newf("error notifying pending fave: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// requestReply stores an interaction request
|
||||
// replyToRequestReply stores an interaction request
|
||||
// for the given reply, and notifies the interactee.
|
||||
func (u *utils) requestReply(
|
||||
//
|
||||
// This is useful when a local account needs to send
|
||||
// out a ReplyRequest, or when a remote account has
|
||||
// sent us a Create instead of a ReplyRequest for a
|
||||
// status where replying requires approval.
|
||||
func (u *utils) replyToRequestReply(
|
||||
ctx context.Context,
|
||||
reply *gtsmodel.Status,
|
||||
) error {
|
||||
|
@ -616,9 +630,14 @@ func (u *utils) requestReply(
|
|||
return nil
|
||||
}
|
||||
|
||||
// requestAnnounce stores an interaction request
|
||||
// announceToRequestAnnounce stores an interaction request
|
||||
// for the given announce, and notifies the interactee.
|
||||
func (u *utils) requestAnnounce(
|
||||
//
|
||||
// This is useful when a local account needs to send
|
||||
// out an AnnounceRequest, or when a remote account has
|
||||
// sent us an Announce instead of an AnnounceRequest for
|
||||
// a status where announcing requires approval.
|
||||
func (u *utils) announceToRequestAnnounce(
|
||||
ctx context.Context,
|
||||
boost *gtsmodel.Status,
|
||||
) error {
|
||||
|
|
|
@ -228,16 +228,16 @@ func APIInteractionPolicyToInteractionPolicy(
|
|||
|
||||
return >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
Always: canLikeAlways,
|
||||
WithApproval: canLikeWithApproval,
|
||||
AutomaticApproval: canLikeAlways,
|
||||
ManualApproval: canLikeWithApproval,
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
Always: canReplyAlways,
|
||||
WithApproval: canReplyWithApproval,
|
||||
AutomaticApproval: canReplyAlways,
|
||||
ManualApproval: canReplyWithApproval,
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
Always: canAnnounceAlways,
|
||||
WithApproval: canAnnounceWithApproval,
|
||||
AutomaticApproval: canAnnounceAlways,
|
||||
ManualApproval: canAnnounceWithApproval,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
|
|
@ -1837,12 +1837,12 @@ func (c *Converter) PollVoteToASCreates(
|
|||
func populateValuesForProp[T ap.WithIRI](
|
||||
prop ap.Property[T],
|
||||
status *gtsmodel.Status,
|
||||
urns gtsmodel.PolicyValues,
|
||||
policyValues gtsmodel.PolicyValues,
|
||||
) error {
|
||||
iriStrs := make([]string, 0)
|
||||
|
||||
for _, urn := range urns {
|
||||
switch urn {
|
||||
for _, policyValue := range policyValues {
|
||||
switch policyValue {
|
||||
|
||||
case gtsmodel.PolicyValueAuthor:
|
||||
iriStrs = append(iriStrs, status.Account.URI)
|
||||
|
@ -1862,7 +1862,7 @@ func populateValuesForProp[T ap.WithIRI](
|
|||
iriStrs = append(iriStrs, pub.PublicActivityPubIRI)
|
||||
|
||||
default:
|
||||
iriStrs = append(iriStrs, string(urn))
|
||||
iriStrs = append(iriStrs, string(policyValue))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1905,7 +1905,7 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
if err := populateValuesForProp(
|
||||
canLikeAlwaysProp,
|
||||
status,
|
||||
interactionPolicy.CanLike.Always,
|
||||
interactionPolicy.CanLike.AutomaticApproval,
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canLike.always: %w", err)
|
||||
}
|
||||
|
@ -1918,7 +1918,7 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
if err := populateValuesForProp(
|
||||
canLikeApprovalRequiredProp,
|
||||
status,
|
||||
interactionPolicy.CanLike.WithApproval,
|
||||
interactionPolicy.CanLike.ManualApproval,
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canLike.approvalRequired: %w", err)
|
||||
}
|
||||
|
@ -1943,7 +1943,7 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
if err := populateValuesForProp(
|
||||
canReplyAlwaysProp,
|
||||
status,
|
||||
interactionPolicy.CanReply.Always,
|
||||
interactionPolicy.CanReply.AutomaticApproval,
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canReply.always: %w", err)
|
||||
}
|
||||
|
@ -1956,7 +1956,7 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
if err := populateValuesForProp(
|
||||
canReplyApprovalRequiredProp,
|
||||
status,
|
||||
interactionPolicy.CanReply.WithApproval,
|
||||
interactionPolicy.CanReply.ManualApproval,
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canReply.approvalRequired: %w", err)
|
||||
}
|
||||
|
@ -1981,7 +1981,7 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
if err := populateValuesForProp(
|
||||
canAnnounceAlwaysProp,
|
||||
status,
|
||||
interactionPolicy.CanAnnounce.Always,
|
||||
interactionPolicy.CanAnnounce.AutomaticApproval,
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canAnnounce.always: %w", err)
|
||||
}
|
||||
|
@ -1994,7 +1994,7 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
if err := populateValuesForProp(
|
||||
canAnnounceApprovalRequiredProp,
|
||||
status,
|
||||
interactionPolicy.CanAnnounce.WithApproval,
|
||||
interactionPolicy.CanAnnounce.ManualApproval,
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canAnnounce.approvalRequired: %w", err)
|
||||
}
|
||||
|
@ -2007,6 +2007,50 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
|
|||
canAnnounceProp.AppendGoToSocialCanAnnounce(canAnnounce)
|
||||
policy.SetGoToSocialCanAnnounce(canAnnounceProp)
|
||||
|
||||
/*
|
||||
CAN QUOTE
|
||||
|
||||
This will be used by Mastodon when they
|
||||
introduce quotes with approvals etc.
|
||||
|
||||
For now we set it to always author only
|
||||
(ie., nobody can quote) until we add support.
|
||||
*/
|
||||
|
||||
// Build canQuote
|
||||
canQuote := streams.NewGoToSocialCanQuote()
|
||||
|
||||
// Build canQuote.always to author only.
|
||||
canQuoteAlwaysProp := streams.NewGoToSocialAlwaysProperty()
|
||||
if err := populateValuesForProp(
|
||||
canQuoteAlwaysProp,
|
||||
status,
|
||||
gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canQuote.always: %w", err)
|
||||
}
|
||||
|
||||
// Set canQuote.always
|
||||
canQuote.SetGoToSocialAlways(canQuoteAlwaysProp)
|
||||
|
||||
// Build canQuote.approvalRequired to empty array.
|
||||
canQuoteApprovalRequiredProp := streams.NewGoToSocialApprovalRequiredProperty()
|
||||
if err := populateValuesForProp(
|
||||
canQuoteApprovalRequiredProp,
|
||||
status,
|
||||
gtsmodel.PolicyValues{},
|
||||
); err != nil {
|
||||
return nil, gtserror.Newf("error setting canQuote.approvalRequired: %w", err)
|
||||
}
|
||||
|
||||
// Set canQuote.approvalRequired
|
||||
canQuote.SetGoToSocialApprovalRequired(canQuoteApprovalRequiredProp)
|
||||
|
||||
// Set canQuote on the policy.
|
||||
canQuoteProp := streams.NewGoToSocialCanQuoteProperty()
|
||||
canQuoteProp.AppendGoToSocialCanQuote(canQuote)
|
||||
policy.SetGoToSocialCanQuote(canQuoteProp)
|
||||
|
||||
return policy, nil
|
||||
}
|
||||
|
||||
|
@ -2018,7 +2062,7 @@ func (c *Converter) InteractionReqToASAccept(
|
|||
) (vocab.ActivityStreamsAccept, error) {
|
||||
accept := streams.NewActivityStreamsAccept()
|
||||
|
||||
acceptID, err := url.Parse(req.URI)
|
||||
acceptID, err := url.Parse(req.ResponseURI)
|
||||
if err != nil {
|
||||
return nil, gtserror.Newf("invalid accept uri: %w", err)
|
||||
}
|
||||
|
@ -2114,7 +2158,7 @@ func (c *Converter) InteractionReqToASReject(
|
|||
) (vocab.ActivityStreamsReject, error) {
|
||||
reject := streams.NewActivityStreamsReject()
|
||||
|
||||
rejectID, err := url.Parse(req.URI)
|
||||
rejectID, err := url.Parse(req.ResponseURI)
|
||||
if err != nil {
|
||||
return nil, gtserror.Newf("invalid reject uri: %w", err)
|
||||
}
|
||||
|
|
|
@ -548,6 +548,12 @@ func (suite *InternalToASTestSuite) TestStatusToAS() {
|
|||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canQuote": {
|
||||
"always": [
|
||||
"http://localhost:8080/users/the_mighty_zork"
|
||||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canReply": {
|
||||
"always": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
|
@ -630,6 +636,12 @@ func (suite *InternalToASTestSuite) TestStatusWithTagsToASWithIDs() {
|
|||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canQuote": {
|
||||
"always": [
|
||||
"http://localhost:8080/users/admin"
|
||||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canReply": {
|
||||
"always": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
|
@ -730,6 +742,12 @@ func (suite *InternalToASTestSuite) TestStatusWithTagsToASFromDB() {
|
|||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canQuote": {
|
||||
"always": [
|
||||
"http://localhost:8080/users/admin"
|
||||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canReply": {
|
||||
"always": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
|
@ -823,6 +841,12 @@ func (suite *InternalToASTestSuite) TestStatusToASWithMentions() {
|
|||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canQuote": {
|
||||
"always": [
|
||||
"http://localhost:8080/users/admin"
|
||||
],
|
||||
"approvalRequired": []
|
||||
},
|
||||
"canReply": {
|
||||
"always": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
|
@ -1242,7 +1266,7 @@ func (suite *InternalToASTestSuite) TestInteractionReqToASAcceptAnnounce() {
|
|||
InteractingAccount: interactingAccount,
|
||||
InteractionURI: "https://fossbros-anonymous.io/users/foss_satan/statuses/01J1AKRRHQ6MDDQHV0TP716T2K",
|
||||
InteractionType: gtsmodel.InteractionAnnounce,
|
||||
URI: "http://localhost:8080/users/the_mighty_zork/accepts/01J1AKMZ8JE5NW0ZSFTRC1JJNE",
|
||||
ResponseURI: "http://localhost:8080/users/the_mighty_zork/accepts/01J1AKMZ8JE5NW0ZSFTRC1JJNE",
|
||||
AcceptedAt: testrig.TimeMustParse("2022-06-09T13:12:00Z"),
|
||||
}
|
||||
|
||||
|
@ -1294,7 +1318,7 @@ func (suite *InternalToASTestSuite) TestInteractionReqToASAcceptLike() {
|
|||
InteractingAccount: interactingAccount,
|
||||
InteractionURI: "https://fossbros-anonymous.io/users/foss_satan/statuses/01J1AKRRHQ6MDDQHV0TP716T2K",
|
||||
InteractionType: gtsmodel.InteractionLike,
|
||||
URI: "http://localhost:8080/users/the_mighty_zork/accepts/01J1AKMZ8JE5NW0ZSFTRC1JJNE",
|
||||
ResponseURI: "http://localhost:8080/users/the_mighty_zork/accepts/01J1AKMZ8JE5NW0ZSFTRC1JJNE",
|
||||
AcceptedAt: testrig.TimeMustParse("2022-06-09T13:12:00Z"),
|
||||
}
|
||||
|
||||
|
|
|
@ -2836,16 +2836,16 @@ func (c *Converter) InteractionPolicyToAPIInteractionPolicy(
|
|||
) (*apimodel.InteractionPolicy, error) {
|
||||
apiPolicy := &apimodel.InteractionPolicy{
|
||||
CanFavourite: apimodel.PolicyRules{
|
||||
Always: policyValsToAPIPolicyVals(policy.CanLike.Always),
|
||||
WithApproval: policyValsToAPIPolicyVals(policy.CanLike.WithApproval),
|
||||
Always: policyValsToAPIPolicyVals(policy.CanLike.AutomaticApproval),
|
||||
WithApproval: policyValsToAPIPolicyVals(policy.CanLike.ManualApproval),
|
||||
},
|
||||
CanReply: apimodel.PolicyRules{
|
||||
Always: policyValsToAPIPolicyVals(policy.CanReply.Always),
|
||||
WithApproval: policyValsToAPIPolicyVals(policy.CanReply.WithApproval),
|
||||
Always: policyValsToAPIPolicyVals(policy.CanReply.AutomaticApproval),
|
||||
WithApproval: policyValsToAPIPolicyVals(policy.CanReply.ManualApproval),
|
||||
},
|
||||
CanReblog: apimodel.PolicyRules{
|
||||
Always: policyValsToAPIPolicyVals(policy.CanAnnounce.Always),
|
||||
WithApproval: policyValsToAPIPolicyVals(policy.CanAnnounce.WithApproval),
|
||||
Always: policyValsToAPIPolicyVals(policy.CanAnnounce.AutomaticApproval),
|
||||
WithApproval: policyValsToAPIPolicyVals(policy.CanAnnounce.ManualApproval),
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -2864,13 +2864,13 @@ func (c *Converter) InteractionPolicyToAPIInteractionPolicy(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if likeable.Permission == gtsmodel.PolicyPermissionPermitted {
|
||||
if likeable.Permission == gtsmodel.PolicyPermissionAutomaticApproval {
|
||||
// We can do this!
|
||||
apiPolicy.CanFavourite.Always = append(
|
||||
apiPolicy.CanFavourite.Always,
|
||||
apimodel.PolicyValueMe,
|
||||
)
|
||||
} else if likeable.Permission == gtsmodel.PolicyPermissionWithApproval {
|
||||
} else if likeable.Permission == gtsmodel.PolicyPermissionManualApproval {
|
||||
// We can do this with approval.
|
||||
apiPolicy.CanFavourite.WithApproval = append(
|
||||
apiPolicy.CanFavourite.WithApproval,
|
||||
|
@ -2884,13 +2884,13 @@ func (c *Converter) InteractionPolicyToAPIInteractionPolicy(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if replyable.Permission == gtsmodel.PolicyPermissionPermitted {
|
||||
if replyable.Permission == gtsmodel.PolicyPermissionAutomaticApproval {
|
||||
// We can do this!
|
||||
apiPolicy.CanReply.Always = append(
|
||||
apiPolicy.CanReply.Always,
|
||||
apimodel.PolicyValueMe,
|
||||
)
|
||||
} else if replyable.Permission == gtsmodel.PolicyPermissionWithApproval {
|
||||
} else if replyable.Permission == gtsmodel.PolicyPermissionManualApproval {
|
||||
// We can do this with approval.
|
||||
apiPolicy.CanReply.WithApproval = append(
|
||||
apiPolicy.CanReply.WithApproval,
|
||||
|
@ -2904,13 +2904,13 @@ func (c *Converter) InteractionPolicyToAPIInteractionPolicy(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if boostable.Permission == gtsmodel.PolicyPermissionPermitted {
|
||||
if boostable.Permission == gtsmodel.PolicyPermissionAutomaticApproval {
|
||||
// We can do this!
|
||||
apiPolicy.CanReblog.Always = append(
|
||||
apiPolicy.CanReblog.Always,
|
||||
apimodel.PolicyValueMe,
|
||||
)
|
||||
} else if boostable.Permission == gtsmodel.PolicyPermissionWithApproval {
|
||||
} else if boostable.Permission == gtsmodel.PolicyPermissionManualApproval {
|
||||
// We can do this with approval.
|
||||
apiPolicy.CanReblog.WithApproval = append(
|
||||
apiPolicy.CanReblog.WithApproval,
|
||||
|
@ -3071,7 +3071,7 @@ func (c *Converter) InteractionReqToAPIInteractionReq(
|
|||
Reply: reply,
|
||||
AcceptedAt: acceptedAt,
|
||||
RejectedAt: rejectedAt,
|
||||
URI: req.URI,
|
||||
URI: req.ResponseURI,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -2239,13 +2239,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
|
|||
Federated: util.Ptr(true),
|
||||
InteractionPolicy: >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
},
|
||||
},
|
||||
ActivityStreamsType: ap.ObjectNote,
|
||||
|
@ -2420,13 +2420,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
|
|||
Federated: util.Ptr(true),
|
||||
InteractionPolicy: >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
},
|
||||
ActivityStreamsType: ap.ObjectNote,
|
||||
|
@ -2452,14 +2452,14 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
|
|||
Federated: util.Ptr(true),
|
||||
InteractionPolicy: >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
WithApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
ManualApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
},
|
||||
ActivityStreamsType: ap.ObjectNote,
|
||||
|
@ -2484,13 +2484,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
|
|||
Federated: util.Ptr(false),
|
||||
InteractionPolicy: >smodel.InteractionPolicy{
|
||||
CanLike: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
CanReply: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic},
|
||||
},
|
||||
CanAnnounce: gtsmodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor},
|
||||
},
|
||||
},
|
||||
ActivityStreamsType: ap.ObjectNote,
|
||||
|
|
36
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go
generated
vendored
36
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go
generated
vendored
|
@ -20,6 +20,12 @@ var ActivityStreamsAnnounceName string = "Announce"
|
|||
// GoToSocialAnnounceApprovalName is the string literal of the name for the AnnounceApproval type in the GoToSocial vocabulary.
|
||||
var GoToSocialAnnounceApprovalName string = "AnnounceApproval"
|
||||
|
||||
// GoToSocialAnnounceAuthorizationName is the string literal of the name for the AnnounceAuthorization type in the GoToSocial vocabulary.
|
||||
var GoToSocialAnnounceAuthorizationName string = "AnnounceAuthorization"
|
||||
|
||||
// GoToSocialAnnounceRequestName is the string literal of the name for the AnnounceRequest type in the GoToSocial vocabulary.
|
||||
var GoToSocialAnnounceRequestName string = "AnnounceRequest"
|
||||
|
||||
// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsApplicationName string = "Application"
|
||||
|
||||
|
@ -44,6 +50,9 @@ var GoToSocialCanAnnounceName string = "CanAnnounce"
|
|||
// GoToSocialCanLikeName is the string literal of the name for the CanLike type in the GoToSocial vocabulary.
|
||||
var GoToSocialCanLikeName string = "CanLike"
|
||||
|
||||
// GoToSocialCanQuoteName is the string literal of the name for the CanQuote type in the GoToSocial vocabulary.
|
||||
var GoToSocialCanQuoteName string = "CanQuote"
|
||||
|
||||
// GoToSocialCanReplyName is the string literal of the name for the CanReply type in the GoToSocial vocabulary.
|
||||
var GoToSocialCanReplyName string = "CanReply"
|
||||
|
||||
|
@ -119,6 +128,12 @@ var ActivityStreamsLikeName string = "Like"
|
|||
// GoToSocialLikeApprovalName is the string literal of the name for the LikeApproval type in the GoToSocial vocabulary.
|
||||
var GoToSocialLikeApprovalName string = "LikeApproval"
|
||||
|
||||
// GoToSocialLikeAuthorizationName is the string literal of the name for the LikeAuthorization type in the GoToSocial vocabulary.
|
||||
var GoToSocialLikeAuthorizationName string = "LikeAuthorization"
|
||||
|
||||
// GoToSocialLikeRequestName is the string literal of the name for the LikeRequest type in the GoToSocial vocabulary.
|
||||
var GoToSocialLikeRequestName string = "LikeRequest"
|
||||
|
||||
// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsLinkName string = "Link"
|
||||
|
||||
|
@ -185,6 +200,12 @@ var ActivityStreamsRemoveName string = "Remove"
|
|||
// GoToSocialReplyApprovalName is the string literal of the name for the ReplyApproval type in the GoToSocial vocabulary.
|
||||
var GoToSocialReplyApprovalName string = "ReplyApproval"
|
||||
|
||||
// GoToSocialReplyAuthorizationName is the string literal of the name for the ReplyAuthorization type in the GoToSocial vocabulary.
|
||||
var GoToSocialReplyAuthorizationName string = "ReplyAuthorization"
|
||||
|
||||
// GoToSocialReplyRequestName is the string literal of the name for the ReplyRequest type in the GoToSocial vocabulary.
|
||||
var GoToSocialReplyRequestName string = "ReplyRequest"
|
||||
|
||||
// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsServiceName string = "Service"
|
||||
|
||||
|
@ -248,6 +269,9 @@ var ActivityStreamsAttributedToPropertyName string = "attributedTo"
|
|||
// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsAudiencePropertyName string = "audience"
|
||||
|
||||
// GoToSocialAutomaticApprovalPropertyName is the string literal of the name for the automaticApproval property in the GoToSocial vocabulary.
|
||||
var GoToSocialAutomaticApprovalPropertyName string = "automaticApproval"
|
||||
|
||||
// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsBccPropertyName string = "bcc"
|
||||
|
||||
|
@ -263,6 +287,9 @@ var GoToSocialCanAnnouncePropertyName string = "canAnnounce"
|
|||
// GoToSocialCanLikePropertyName is the string literal of the name for the canLike property in the GoToSocial vocabulary.
|
||||
var GoToSocialCanLikePropertyName string = "canLike"
|
||||
|
||||
// GoToSocialCanQuotePropertyName is the string literal of the name for the canQuote property in the GoToSocial vocabulary.
|
||||
var GoToSocialCanQuotePropertyName string = "canQuote"
|
||||
|
||||
// GoToSocialCanReplyPropertyName is the string literal of the name for the canReply property in the GoToSocial vocabulary.
|
||||
var GoToSocialCanReplyPropertyName string = "canReply"
|
||||
|
||||
|
@ -344,9 +371,15 @@ var ActivityStreamsInboxPropertyName string = "inbox"
|
|||
// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsInstrumentPropertyName string = "instrument"
|
||||
|
||||
// GoToSocialInteractingObjectPropertyName is the string literal of the name for the interactingObject property in the GoToSocial vocabulary.
|
||||
var GoToSocialInteractingObjectPropertyName string = "interactingObject"
|
||||
|
||||
// GoToSocialInteractionPolicyPropertyName is the string literal of the name for the interactionPolicy property in the GoToSocial vocabulary.
|
||||
var GoToSocialInteractionPolicyPropertyName string = "interactionPolicy"
|
||||
|
||||
// GoToSocialInteractionTargetPropertyName is the string literal of the name for the interactionTarget property in the GoToSocial vocabulary.
|
||||
var GoToSocialInteractionTargetPropertyName string = "interactionTarget"
|
||||
|
||||
// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsItemsPropertyName string = "items"
|
||||
|
||||
|
@ -368,6 +401,9 @@ var ActivityStreamsLocationPropertyName string = "location"
|
|||
// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsLongitudePropertyName string = "longitude"
|
||||
|
||||
// GoToSocialManualApprovalPropertyName is the string literal of the name for the manualApproval property in the GoToSocial vocabulary.
|
||||
var GoToSocialManualApprovalPropertyName string = "manualApproval"
|
||||
|
||||
// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers"
|
||||
|
||||
|
|
31
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go
generated
vendored
31
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go
generated
vendored
|
@ -142,17 +142,29 @@ import (
|
|||
propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always"
|
||||
propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired"
|
||||
propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby"
|
||||
propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval"
|
||||
propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce"
|
||||
propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike"
|
||||
propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote"
|
||||
propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply"
|
||||
propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject"
|
||||
propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy"
|
||||
propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget"
|
||||
propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval"
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value"
|
||||
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash"
|
||||
|
@ -322,17 +334,29 @@ func init() {
|
|||
propertyalways.SetManager(mgr)
|
||||
propertyapprovalrequired.SetManager(mgr)
|
||||
propertyapprovedby.SetManager(mgr)
|
||||
propertyautomaticapproval.SetManager(mgr)
|
||||
propertycanannounce.SetManager(mgr)
|
||||
propertycanlike.SetManager(mgr)
|
||||
propertycanquote.SetManager(mgr)
|
||||
propertycanreply.SetManager(mgr)
|
||||
propertyinteractingobject.SetManager(mgr)
|
||||
propertyinteractionpolicy.SetManager(mgr)
|
||||
propertyinteractiontarget.SetManager(mgr)
|
||||
propertymanualapproval.SetManager(mgr)
|
||||
typeannounceapproval.SetManager(mgr)
|
||||
typeannounceauthorization.SetManager(mgr)
|
||||
typeannouncerequest.SetManager(mgr)
|
||||
typecanannounce.SetManager(mgr)
|
||||
typecanlike.SetManager(mgr)
|
||||
typecanquote.SetManager(mgr)
|
||||
typecanreply.SetManager(mgr)
|
||||
typeinteractionpolicy.SetManager(mgr)
|
||||
typelikeapproval.SetManager(mgr)
|
||||
typelikeauthorization.SetManager(mgr)
|
||||
typelikerequest.SetManager(mgr)
|
||||
typereplyapproval.SetManager(mgr)
|
||||
typereplyauthorization.SetManager(mgr)
|
||||
typereplyrequest.SetManager(mgr)
|
||||
propertyvalue.SetManager(mgr)
|
||||
typepropertyvalue.SetManager(mgr)
|
||||
propertyblurhash.SetManager(mgr)
|
||||
|
@ -408,12 +432,19 @@ func init() {
|
|||
typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeannounceauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeannouncerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typecanquote.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typecanreply.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeinteractionpolicy.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typelikeapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typelikeauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typelikerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typereplyauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typereplyrequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
|
|
91
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
generated
vendored
91
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
generated
vendored
|
@ -43,6 +43,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceApproval) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceRequest) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsApplication) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsArrive) error:
|
||||
|
@ -59,6 +63,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanLike) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanQuote) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanReply) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsCollection) error:
|
||||
|
@ -109,6 +115,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeApproval) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeAuthorization) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeRequest) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsLink) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsListen) error:
|
||||
|
@ -153,6 +163,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyApproval) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyAuthorization) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyRequest) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsService) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsTentativeAccept) error:
|
||||
|
@ -354,6 +368,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
|
|||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"AnnounceAuthorization" {
|
||||
v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"AnnounceRequest" {
|
||||
v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == ActivityStreamsAlias+"Application" {
|
||||
v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap)
|
||||
if err != nil {
|
||||
|
@ -442,6 +478,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
|
|||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"CanQuote" {
|
||||
v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"CanReply" {
|
||||
v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
|
@ -717,6 +764,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
|
|||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"LikeAuthorization" {
|
||||
v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"LikeRequest" {
|
||||
v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == ActivityStreamsAlias+"Link" {
|
||||
v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap)
|
||||
if err != nil {
|
||||
|
@ -959,6 +1028,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
|
|||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"ReplyAuthorization" {
|
||||
v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == GoToSocialAlias+"ReplyRequest" {
|
||||
v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == ActivityStreamsAlias+"Service" {
|
||||
v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap)
|
||||
if err != nil {
|
||||
|
|
167
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
167
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
|
@ -142,17 +142,29 @@ import (
|
|||
propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always"
|
||||
propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired"
|
||||
propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby"
|
||||
propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval"
|
||||
propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce"
|
||||
propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike"
|
||||
propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote"
|
||||
propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply"
|
||||
propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject"
|
||||
propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy"
|
||||
propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget"
|
||||
propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval"
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
propertyid "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id"
|
||||
propertytype "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type"
|
||||
propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value"
|
||||
|
@ -321,6 +333,32 @@ func (this Manager) DeserializeAnnounceApprovalGoToSocial() func(map[string]inte
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceAuthorization" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) {
|
||||
i, err := typeannounceauthorization.DeserializeAnnounceAuthorization(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialAnnounceRequest" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceRequest, error) {
|
||||
i, err := typeannouncerequest.DeserializeAnnounceRequest(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"
|
||||
|
@ -463,6 +501,19 @@ func (this Manager) DeserializeAudioActivityStreams() func(map[string]interface{
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeAutomaticApprovalPropertyGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAutomaticApprovalProperty" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) {
|
||||
i, err := propertyautomaticapproval.DeserializeAutomaticApprovalProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeBccPropertyActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsBccProperty" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -565,6 +616,31 @@ func (this Manager) DeserializeCanLikePropertyGoToSocial() func(map[string]inter
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeCanQuoteGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialCanQuote" non-functional property in the vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuote, error) {
|
||||
i, err := typecanquote.DeserializeCanQuote(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeCanQuotePropertyGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialCanQuoteProperty" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) {
|
||||
i, err := propertycanquote.DeserializeCanQuoteProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeCanReplyGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialCanReply" non-functional property in the vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeCanReplyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReply, error) {
|
||||
|
@ -1130,6 +1206,19 @@ func (this Manager) DeserializeInstrumentPropertyActivityStreams() func(map[stri
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeInteractingObjectPropertyGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialInteractingObjectProperty" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) {
|
||||
i, err := propertyinteractingobject.DeserializeInteractingObjectProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeInteractionPolicyGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialInteractionPolicy" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
|
@ -1156,6 +1245,19 @@ func (this Manager) DeserializeInteractionPolicyPropertyGoToSocial() func(map[st
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeInteractionTargetPropertyGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialInteractionTargetProperty" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) {
|
||||
i, err := propertyinteractiontarget.DeserializeInteractionTargetProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsIntransitiveActivity" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
@ -1285,6 +1387,32 @@ func (this Manager) DeserializeLikeApprovalGoToSocial() func(map[string]interfac
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeAuthorization" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeAuthorization, error) {
|
||||
i, err := typelikeauthorization.DeserializeLikeAuthorization(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialLikeRequest" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeRequest, error) {
|
||||
i, err := typelikerequest.DeserializeLikeRequest(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"
|
||||
|
@ -1363,6 +1491,19 @@ func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[strin
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeManualApprovalPropertyGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialManualApprovalProperty" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) {
|
||||
i, err := propertymanualapproval.DeserializeManualApprovalProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
|
||||
// deserialization method for the
|
||||
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property
|
||||
|
@ -1909,6 +2050,32 @@ func (this Manager) DeserializeReplyApprovalGoToSocial() func(map[string]interfa
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialReplyAuthorization" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
func (this Manager) DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyAuthorization, error) {
|
||||
i, err := typereplyauthorization.DeserializeReplyAuthorization(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method for the
|
||||
// "GoToSocialReplyRequest" non-functional property in the vocabulary
|
||||
// "GoToSocial"
|
||||
func (this Manager) DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyRequest, error) {
|
||||
i, err := typereplyrequest.DeserializeReplyRequest(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"
|
||||
|
|
49
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go
generated
vendored
49
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go
generated
vendored
|
@ -4,12 +4,19 @@ package streams
|
|||
|
||||
import (
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
|
@ -19,6 +26,18 @@ func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool {
|
|||
return typeannounceapproval.AnnounceApprovalIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialAnnounceAuthorizationIsDisjointWith returns true if
|
||||
// AnnounceAuthorization is disjoint with the other's type.
|
||||
func GoToSocialAnnounceAuthorizationIsDisjointWith(other vocab.Type) bool {
|
||||
return typeannounceauthorization.AnnounceAuthorizationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialAnnounceRequestIsDisjointWith returns true if AnnounceRequest is
|
||||
// disjoint with the other's type.
|
||||
func GoToSocialAnnounceRequestIsDisjointWith(other vocab.Type) bool {
|
||||
return typeannouncerequest.AnnounceRequestIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint
|
||||
// with the other's type.
|
||||
func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool {
|
||||
|
@ -31,6 +50,12 @@ func GoToSocialCanLikeIsDisjointWith(other vocab.Type) bool {
|
|||
return typecanlike.CanLikeIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialCanQuoteIsDisjointWith returns true if CanQuote is disjoint with the
|
||||
// other's type.
|
||||
func GoToSocialCanQuoteIsDisjointWith(other vocab.Type) bool {
|
||||
return typecanquote.CanQuoteIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialCanReplyIsDisjointWith returns true if CanReply is disjoint with the
|
||||
// other's type.
|
||||
func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool {
|
||||
|
@ -49,8 +74,32 @@ func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool {
|
|||
return typelikeapproval.LikeApprovalIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialLikeAuthorizationIsDisjointWith returns true if LikeAuthorization is
|
||||
// disjoint with the other's type.
|
||||
func GoToSocialLikeAuthorizationIsDisjointWith(other vocab.Type) bool {
|
||||
return typelikeauthorization.LikeAuthorizationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialLikeRequestIsDisjointWith returns true if LikeRequest is disjoint
|
||||
// with the other's type.
|
||||
func GoToSocialLikeRequestIsDisjointWith(other vocab.Type) bool {
|
||||
return typelikerequest.LikeRequestIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint
|
||||
// with the other's type.
|
||||
func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool {
|
||||
return typereplyapproval.ReplyApprovalIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialReplyAuthorizationIsDisjointWith returns true if ReplyAuthorization
|
||||
// is disjoint with the other's type.
|
||||
func GoToSocialReplyAuthorizationIsDisjointWith(other vocab.Type) bool {
|
||||
return typereplyauthorization.ReplyAuthorizationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// GoToSocialReplyRequestIsDisjointWith returns true if ReplyRequest is disjoint
|
||||
// with the other's type.
|
||||
func GoToSocialReplyRequestIsDisjointWith(other vocab.Type) bool {
|
||||
return typereplyrequest.ReplyRequestIsDisjointWith(other)
|
||||
}
|
||||
|
|
|
@ -4,12 +4,19 @@ package streams
|
|||
|
||||
import (
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
|
@ -20,6 +27,20 @@ func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool {
|
|||
return typeannounceapproval.AnnounceApprovalIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialAnnounceAuthorizationIsExtendedBy returns true if the other's type
|
||||
// extends from AnnounceAuthorization. Note that it returns false if the types
|
||||
// are the same; see the "IsOrExtends" variant instead.
|
||||
func GoToSocialAnnounceAuthorizationIsExtendedBy(other vocab.Type) bool {
|
||||
return typeannounceauthorization.AnnounceAuthorizationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialAnnounceRequestIsExtendedBy returns true if the other's type extends
|
||||
// from AnnounceRequest. Note that it returns false if the types are the same;
|
||||
// see the "IsOrExtends" variant instead.
|
||||
func GoToSocialAnnounceRequestIsExtendedBy(other vocab.Type) bool {
|
||||
return typeannouncerequest.AnnounceRequestIsExtendedBy(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.
|
||||
|
@ -34,6 +55,13 @@ func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool {
|
|||
return typecanlike.CanLikeIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialCanQuoteIsExtendedBy returns true if the other's type extends from
|
||||
// CanQuote. Note that it returns false if the types are the same; see the
|
||||
// "IsOrExtends" variant instead.
|
||||
func GoToSocialCanQuoteIsExtendedBy(other vocab.Type) bool {
|
||||
return typecanquote.CanQuoteIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from
|
||||
// CanReply. Note that it returns false if the types are the same; see the
|
||||
// "IsOrExtends" variant instead.
|
||||
|
@ -55,9 +83,37 @@ func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool {
|
|||
return typelikeapproval.LikeApprovalIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialLikeAuthorizationIsExtendedBy returns true if the other's type
|
||||
// extends from LikeAuthorization. Note that it returns false if the types are
|
||||
// the same; see the "IsOrExtends" variant instead.
|
||||
func GoToSocialLikeAuthorizationIsExtendedBy(other vocab.Type) bool {
|
||||
return typelikeauthorization.LikeAuthorizationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialLikeRequestIsExtendedBy returns true if the other's type extends from
|
||||
// LikeRequest. Note that it returns false if the types are the same; see the
|
||||
// "IsOrExtends" variant instead.
|
||||
func GoToSocialLikeRequestIsExtendedBy(other vocab.Type) bool {
|
||||
return typelikerequest.LikeRequestIsExtendedBy(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)
|
||||
}
|
||||
|
||||
// GoToSocialReplyAuthorizationIsExtendedBy returns true if the other's type
|
||||
// extends from ReplyAuthorization. Note that it returns false if the types
|
||||
// are the same; see the "IsOrExtends" variant instead.
|
||||
func GoToSocialReplyAuthorizationIsExtendedBy(other vocab.Type) bool {
|
||||
return typereplyauthorization.ReplyAuthorizationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// GoToSocialReplyRequestIsExtendedBy returns true if the other's type extends
|
||||
// from ReplyRequest. Note that it returns false if the types are the same;
|
||||
// see the "IsOrExtends" variant instead.
|
||||
func GoToSocialReplyRequestIsExtendedBy(other vocab.Type) bool {
|
||||
return typereplyrequest.ReplyRequestIsExtendedBy(other)
|
||||
}
|
||||
|
|
49
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go
generated
vendored
49
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go
generated
vendored
|
@ -4,12 +4,19 @@ package streams
|
|||
|
||||
import (
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
|
@ -19,6 +26,18 @@ func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool {
|
|||
return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialAnnounceAuthorizationExtends returns true if
|
||||
// AnnounceAuthorization extends from the other's type.
|
||||
func GoToSocialGoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool {
|
||||
return typeannounceauthorization.GoToSocialAnnounceAuthorizationExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialAnnounceRequestExtends returns true if AnnounceRequest
|
||||
// extends from the other's type.
|
||||
func GoToSocialGoToSocialAnnounceRequestExtends(other vocab.Type) bool {
|
||||
return typeannouncerequest.GoToSocialAnnounceRequestExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from
|
||||
// the other's type.
|
||||
func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool {
|
||||
|
@ -31,6 +50,12 @@ func GoToSocialGoToSocialCanLikeExtends(other vocab.Type) bool {
|
|||
return typecanlike.GoToSocialCanLikeExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialCanQuoteExtends returns true if CanQuote extends from the
|
||||
// other's type.
|
||||
func GoToSocialGoToSocialCanQuoteExtends(other vocab.Type) bool {
|
||||
return typecanquote.GoToSocialCanQuoteExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialCanReplyExtends returns true if CanReply extends from the
|
||||
// other's type.
|
||||
func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool {
|
||||
|
@ -49,8 +74,32 @@ func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool {
|
|||
return typelikeapproval.GoToSocialLikeApprovalExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialLikeAuthorizationExtends returns true if LikeAuthorization
|
||||
// extends from the other's type.
|
||||
func GoToSocialGoToSocialLikeAuthorizationExtends(other vocab.Type) bool {
|
||||
return typelikeauthorization.GoToSocialLikeAuthorizationExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialLikeRequestExtends returns true if LikeRequest extends from
|
||||
// the other's type.
|
||||
func GoToSocialGoToSocialLikeRequestExtends(other vocab.Type) bool {
|
||||
return typelikerequest.GoToSocialLikeRequestExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends
|
||||
// from the other's type.
|
||||
func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool {
|
||||
return typereplyapproval.GoToSocialReplyApprovalExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialReplyAuthorizationExtends returns true if
|
||||
// ReplyAuthorization extends from the other's type.
|
||||
func GoToSocialGoToSocialReplyAuthorizationExtends(other vocab.Type) bool {
|
||||
return typereplyauthorization.GoToSocialReplyAuthorizationExtends(other)
|
||||
}
|
||||
|
||||
// GoToSocialGoToSocialReplyRequestExtends returns true if ReplyRequest extends
|
||||
// from the other's type.
|
||||
func GoToSocialGoToSocialReplyRequestExtends(other vocab.Type) bool {
|
||||
return typereplyrequest.GoToSocialReplyRequestExtends(other)
|
||||
}
|
||||
|
|
|
@ -4,12 +4,19 @@ package streams
|
|||
|
||||
import (
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
|
@ -19,6 +26,19 @@ func IsOrExtendsGoToSocialAnnounceApproval(other vocab.Type) bool {
|
|||
return typeannounceapproval.IsOrExtendsAnnounceApproval(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialAnnounceAuthorization returns true if the other provided
|
||||
// type is the AnnounceAuthorization type or extends from the
|
||||
// AnnounceAuthorization type.
|
||||
func IsOrExtendsGoToSocialAnnounceAuthorization(other vocab.Type) bool {
|
||||
return typeannounceauthorization.IsOrExtendsAnnounceAuthorization(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialAnnounceRequest returns true if the other provided type is
|
||||
// the AnnounceRequest type or extends from the AnnounceRequest type.
|
||||
func IsOrExtendsGoToSocialAnnounceRequest(other vocab.Type) bool {
|
||||
return typeannouncerequest.IsOrExtendsAnnounceRequest(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialCanAnnounce returns true if the other provided type is the
|
||||
// CanAnnounce type or extends from the CanAnnounce type.
|
||||
func IsOrExtendsGoToSocialCanAnnounce(other vocab.Type) bool {
|
||||
|
@ -31,6 +51,12 @@ func IsOrExtendsGoToSocialCanLike(other vocab.Type) bool {
|
|||
return typecanlike.IsOrExtendsCanLike(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialCanQuote returns true if the other provided type is the
|
||||
// CanQuote type or extends from the CanQuote type.
|
||||
func IsOrExtendsGoToSocialCanQuote(other vocab.Type) bool {
|
||||
return typecanquote.IsOrExtendsCanQuote(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialCanReply returns true if the other provided type is the
|
||||
// CanReply type or extends from the CanReply type.
|
||||
func IsOrExtendsGoToSocialCanReply(other vocab.Type) bool {
|
||||
|
@ -49,8 +75,32 @@ func IsOrExtendsGoToSocialLikeApproval(other vocab.Type) bool {
|
|||
return typelikeapproval.IsOrExtendsLikeApproval(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialLikeAuthorization returns true if the other provided type
|
||||
// is the LikeAuthorization type or extends from the LikeAuthorization type.
|
||||
func IsOrExtendsGoToSocialLikeAuthorization(other vocab.Type) bool {
|
||||
return typelikeauthorization.IsOrExtendsLikeAuthorization(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialLikeRequest returns true if the other provided type is the
|
||||
// LikeRequest type or extends from the LikeRequest type.
|
||||
func IsOrExtendsGoToSocialLikeRequest(other vocab.Type) bool {
|
||||
return typelikerequest.IsOrExtendsLikeRequest(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialReplyApproval returns true if the other provided type is
|
||||
// the ReplyApproval type or extends from the ReplyApproval type.
|
||||
func IsOrExtendsGoToSocialReplyApproval(other vocab.Type) bool {
|
||||
return typereplyapproval.IsOrExtendsReplyApproval(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialReplyAuthorization returns true if the other provided type
|
||||
// is the ReplyAuthorization type or extends from the ReplyAuthorization type.
|
||||
func IsOrExtendsGoToSocialReplyAuthorization(other vocab.Type) bool {
|
||||
return typereplyauthorization.IsOrExtendsReplyAuthorization(other)
|
||||
}
|
||||
|
||||
// IsOrExtendsGoToSocialReplyRequest returns true if the other provided type is
|
||||
// the ReplyRequest type or extends from the ReplyRequest type.
|
||||
func IsOrExtendsGoToSocialReplyRequest(other vocab.Type) bool {
|
||||
return typereplyrequest.IsOrExtendsReplyRequest(other)
|
||||
}
|
||||
|
|
|
@ -6,10 +6,15 @@ import (
|
|||
propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always"
|
||||
propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired"
|
||||
propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby"
|
||||
propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval"
|
||||
propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce"
|
||||
propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike"
|
||||
propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote"
|
||||
propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply"
|
||||
propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject"
|
||||
propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy"
|
||||
propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget"
|
||||
propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval"
|
||||
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
|
@ -30,6 +35,12 @@ func NewGoToSocialApprovedByProperty() vocab.GoToSocialApprovedByProperty {
|
|||
return propertyapprovedby.NewGoToSocialApprovedByProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialAutomaticApprovalProperty creates a new
|
||||
// GoToSocialAutomaticApprovalProperty
|
||||
func NewGoToSocialAutomaticApprovalProperty() vocab.GoToSocialAutomaticApprovalProperty {
|
||||
return propertyautomaticapproval.NewGoToSocialAutomaticApprovalProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialCanAnnounceProperty creates a new
|
||||
// GoToSocialCanAnnounceProperty
|
||||
func NewGoToSocialCanAnnounceProperty() vocab.GoToSocialCanAnnounceProperty {
|
||||
|
@ -41,13 +52,36 @@ func NewGoToSocialCanLikeProperty() vocab.GoToSocialCanLikeProperty {
|
|||
return propertycanlike.NewGoToSocialCanLikeProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialCanQuoteProperty creates a new GoToSocialCanQuoteProperty
|
||||
func NewGoToSocialCanQuoteProperty() vocab.GoToSocialCanQuoteProperty {
|
||||
return propertycanquote.NewGoToSocialCanQuoteProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialCanReplyProperty creates a new GoToSocialCanReplyProperty
|
||||
func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty {
|
||||
return propertycanreply.NewGoToSocialCanReplyProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialInteractingObjectProperty creates a new
|
||||
// GoToSocialInteractingObjectProperty
|
||||
func NewGoToSocialInteractingObjectProperty() vocab.GoToSocialInteractingObjectProperty {
|
||||
return propertyinteractingobject.NewGoToSocialInteractingObjectProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialInteractionPolicyProperty creates a new
|
||||
// GoToSocialInteractionPolicyProperty
|
||||
func NewGoToSocialInteractionPolicyProperty() vocab.GoToSocialInteractionPolicyProperty {
|
||||
return propertyinteractionpolicy.NewGoToSocialInteractionPolicyProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialInteractionTargetProperty creates a new
|
||||
// GoToSocialInteractionTargetProperty
|
||||
func NewGoToSocialInteractionTargetProperty() vocab.GoToSocialInteractionTargetProperty {
|
||||
return propertyinteractiontarget.NewGoToSocialInteractionTargetProperty()
|
||||
}
|
||||
|
||||
// NewGoToSocialGoToSocialManualApprovalProperty creates a new
|
||||
// GoToSocialManualApprovalProperty
|
||||
func NewGoToSocialManualApprovalProperty() vocab.GoToSocialManualApprovalProperty {
|
||||
return propertymanualapproval.NewGoToSocialManualApprovalProperty()
|
||||
}
|
||||
|
|
|
@ -4,12 +4,19 @@ package streams
|
|||
|
||||
import (
|
||||
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
|
||||
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
|
||||
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
|
||||
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
|
||||
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
|
||||
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
|
||||
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
|
||||
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
|
||||
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
|
||||
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
|
||||
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
|
||||
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
|
||||
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
|
||||
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
|
||||
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
|
@ -18,6 +25,16 @@ func NewGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval {
|
|||
return typeannounceapproval.NewGoToSocialAnnounceApproval()
|
||||
}
|
||||
|
||||
// NewGoToSocialAnnounceAuthorization creates a new GoToSocialAnnounceAuthorization
|
||||
func NewGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization {
|
||||
return typeannounceauthorization.NewGoToSocialAnnounceAuthorization()
|
||||
}
|
||||
|
||||
// NewGoToSocialAnnounceRequest creates a new GoToSocialAnnounceRequest
|
||||
func NewGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest {
|
||||
return typeannouncerequest.NewGoToSocialAnnounceRequest()
|
||||
}
|
||||
|
||||
// NewGoToSocialCanAnnounce creates a new GoToSocialCanAnnounce
|
||||
func NewGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounce {
|
||||
return typecanannounce.NewGoToSocialCanAnnounce()
|
||||
|
@ -28,6 +45,11 @@ func NewGoToSocialCanLike() vocab.GoToSocialCanLike {
|
|||
return typecanlike.NewGoToSocialCanLike()
|
||||
}
|
||||
|
||||
// NewGoToSocialCanQuote creates a new GoToSocialCanQuote
|
||||
func NewGoToSocialCanQuote() vocab.GoToSocialCanQuote {
|
||||
return typecanquote.NewGoToSocialCanQuote()
|
||||
}
|
||||
|
||||
// NewGoToSocialCanReply creates a new GoToSocialCanReply
|
||||
func NewGoToSocialCanReply() vocab.GoToSocialCanReply {
|
||||
return typecanreply.NewGoToSocialCanReply()
|
||||
|
@ -43,7 +65,27 @@ func NewGoToSocialLikeApproval() vocab.GoToSocialLikeApproval {
|
|||
return typelikeapproval.NewGoToSocialLikeApproval()
|
||||
}
|
||||
|
||||
// NewGoToSocialLikeAuthorization creates a new GoToSocialLikeAuthorization
|
||||
func NewGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization {
|
||||
return typelikeauthorization.NewGoToSocialLikeAuthorization()
|
||||
}
|
||||
|
||||
// NewGoToSocialLikeRequest creates a new GoToSocialLikeRequest
|
||||
func NewGoToSocialLikeRequest() vocab.GoToSocialLikeRequest {
|
||||
return typelikerequest.NewGoToSocialLikeRequest()
|
||||
}
|
||||
|
||||
// NewGoToSocialReplyApproval creates a new GoToSocialReplyApproval
|
||||
func NewGoToSocialReplyApproval() vocab.GoToSocialReplyApproval {
|
||||
return typereplyapproval.NewGoToSocialReplyApproval()
|
||||
}
|
||||
|
||||
// NewGoToSocialReplyAuthorization creates a new GoToSocialReplyAuthorization
|
||||
func NewGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization {
|
||||
return typereplyauthorization.NewGoToSocialReplyAuthorization()
|
||||
}
|
||||
|
||||
// NewGoToSocialReplyRequest creates a new GoToSocialReplyRequest
|
||||
func NewGoToSocialReplyRequest() vocab.GoToSocialReplyRequest {
|
||||
return typereplyrequest.NewGoToSocialReplyRequest()
|
||||
}
|
||||
|
|
21
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go
generated
vendored
21
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go
generated
vendored
|
@ -64,6 +64,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
|
|||
}, func(ctx context.Context, i vocab.GoToSocialAnnounceApproval) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialAnnounceAuthorization) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialAnnounceRequest) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.ActivityStreamsApplication) error {
|
||||
t = i
|
||||
return nil
|
||||
|
@ -88,6 +94,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
|
|||
}, func(ctx context.Context, i vocab.GoToSocialCanLike) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialCanQuote) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialCanReply) error {
|
||||
t = i
|
||||
return nil
|
||||
|
@ -163,6 +172,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
|
|||
}, func(ctx context.Context, i vocab.GoToSocialLikeApproval) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialLikeAuthorization) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialLikeRequest) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.ActivityStreamsLink) error {
|
||||
t = i
|
||||
return nil
|
||||
|
@ -229,6 +244,12 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
|
|||
}, func(ctx context.Context, i vocab.GoToSocialReplyApproval) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialReplyAuthorization) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.GoToSocialReplyRequest) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.ActivityStreamsService) error {
|
||||
t = i
|
||||
return nil
|
||||
|
|
|
@ -41,6 +41,10 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
|
|||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsApplication) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsArrive) (bool, error):
|
||||
|
@ -57,6 +61,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
|
|||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanLike) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanQuote) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanReply) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsCollection) (bool, error):
|
||||
|
@ -107,6 +113,10 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
|
|||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeApproval) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeRequest) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsLink) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsListen) (bool, error):
|
||||
|
@ -151,6 +161,10 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
|
|||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyApproval) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyRequest) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsService) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error):
|
||||
|
@ -256,6 +270,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.ActivityStreamsApplication); ok {
|
||||
|
@ -344,6 +380,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanQuote) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialCanQuote); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanReply) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialCanReply); ok {
|
||||
|
@ -619,6 +666,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeRequest) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialLikeRequest); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.ActivityStreamsLink); ok {
|
||||
|
@ -861,6 +930,28 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyRequest) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.GoToSocialReplyRequest); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.ActivityStreamsService); ok {
|
||||
|
|
77
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go
generated
vendored
77
vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go
generated
vendored
|
@ -40,6 +40,10 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceApproval) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialAnnounceRequest) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsApplication) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsArrive) error:
|
||||
|
@ -56,6 +60,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanLike) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanQuote) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialCanReply) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsCollection) error:
|
||||
|
@ -106,6 +112,10 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeApproval) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeAuthorization) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialLikeRequest) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsLink) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsListen) error:
|
||||
|
@ -150,6 +160,10 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyApproval) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyAuthorization) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GoToSocialReplyRequest) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsService) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsTentativeAccept) error:
|
||||
|
@ -239,6 +253,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" {
|
||||
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok {
|
||||
if v, ok := o.(vocab.ActivityStreamsApplication); ok {
|
||||
|
@ -311,6 +343,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialCanQuote); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialCanReply); ok {
|
||||
|
@ -536,6 +577,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialLikeRequest); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" {
|
||||
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok {
|
||||
if v, ok := o.(vocab.ActivityStreamsLink); ok {
|
||||
|
@ -734,6 +793,24 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" {
|
||||
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok {
|
||||
if v, ok := o.(vocab.GoToSocialReplyRequest); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" {
|
||||
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok {
|
||||
if v, ok := o.(vocab.ActivityStreamsService); ok {
|
||||
|
|
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -140,6 +148,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsListen" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
@ -217,6 +233,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
|
@ -21,6 +21,8 @@ type ActivityStreamsDescribesProperty struct {
|
|||
funkwhaleAlbumMember vocab.FunkwhaleAlbum
|
||||
activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
|
||||
gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval
|
||||
gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization
|
||||
gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest
|
||||
activitystreamsApplicationMember vocab.ActivityStreamsApplication
|
||||
activitystreamsArriveMember vocab.ActivityStreamsArrive
|
||||
activitystreamsArticleMember vocab.ActivityStreamsArticle
|
||||
|
@ -48,6 +50,8 @@ type ActivityStreamsDescribesProperty struct {
|
|||
funkwhaleLibraryMember vocab.FunkwhaleLibrary
|
||||
activitystreamsLikeMember vocab.ActivityStreamsLike
|
||||
gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval
|
||||
gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization
|
||||
gotosocialLikeRequestMember vocab.GoToSocialLikeRequest
|
||||
activitystreamsListenMember vocab.ActivityStreamsListen
|
||||
activitystreamsMoveMember vocab.ActivityStreamsMove
|
||||
activitystreamsNoteMember vocab.ActivityStreamsNote
|
||||
|
@ -66,6 +70,8 @@ type ActivityStreamsDescribesProperty struct {
|
|||
activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
|
||||
activitystreamsRemoveMember vocab.ActivityStreamsRemove
|
||||
gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval
|
||||
gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization
|
||||
gotosocialReplyRequestMember vocab.GoToSocialReplyRequest
|
||||
activitystreamsServiceMember vocab.ActivityStreamsService
|
||||
activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
|
||||
activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
|
||||
|
@ -151,6 +157,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
|
|||
gotosocialAnnounceApprovalMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
gotosocialAnnounceAuthorizationMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
gotosocialAnnounceRequestMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
activitystreamsApplicationMember: v,
|
||||
|
@ -313,6 +331,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
|
|||
gotosocialLikeApprovalMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
gotosocialLikeAuthorizationMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
gotosocialLikeRequestMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
activitystreamsListenMember: v,
|
||||
|
@ -421,6 +451,18 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
|
|||
gotosocialReplyApprovalMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
gotosocialReplyAuthorizationMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
gotosocialReplyRequestMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
activitystreamsServiceMember: v,
|
||||
|
@ -507,6 +549,8 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
|
|||
this.funkwhaleAlbumMember = nil
|
||||
this.activitystreamsAnnounceMember = nil
|
||||
this.gotosocialAnnounceApprovalMember = nil
|
||||
this.gotosocialAnnounceAuthorizationMember = nil
|
||||
this.gotosocialAnnounceRequestMember = nil
|
||||
this.activitystreamsApplicationMember = nil
|
||||
this.activitystreamsArriveMember = nil
|
||||
this.activitystreamsArticleMember = nil
|
||||
|
@ -534,6 +578,8 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
|
|||
this.funkwhaleLibraryMember = nil
|
||||
this.activitystreamsLikeMember = nil
|
||||
this.gotosocialLikeApprovalMember = nil
|
||||
this.gotosocialLikeAuthorizationMember = nil
|
||||
this.gotosocialLikeRequestMember = nil
|
||||
this.activitystreamsListenMember = nil
|
||||
this.activitystreamsMoveMember = nil
|
||||
this.activitystreamsNoteMember = nil
|
||||
|
@ -552,6 +598,8 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
|
|||
this.activitystreamsRelationshipMember = nil
|
||||
this.activitystreamsRemoveMember = nil
|
||||
this.gotosocialReplyApprovalMember = nil
|
||||
this.gotosocialReplyAuthorizationMember = nil
|
||||
this.gotosocialReplyRequestMember = nil
|
||||
this.activitystreamsServiceMember = nil
|
||||
this.activitystreamsTentativeAcceptMember = nil
|
||||
this.activitystreamsTentativeRejectMember = nil
|
||||
|
@ -961,6 +1009,20 @@ func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceApproval() voc
|
|||
return this.gotosocialAnnounceApprovalMember
|
||||
}
|
||||
|
||||
// GetGoToSocialAnnounceAuthorization returns the value of this property. When
|
||||
// IsGoToSocialAnnounceAuthorization returns false,
|
||||
// GetGoToSocialAnnounceAuthorization will return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization {
|
||||
return this.gotosocialAnnounceAuthorizationMember
|
||||
}
|
||||
|
||||
// GetGoToSocialAnnounceRequest returns the value of this property. When
|
||||
// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest
|
||||
// will return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest {
|
||||
return this.gotosocialAnnounceRequestMember
|
||||
}
|
||||
|
||||
// GetGoToSocialLikeApproval returns the value of this property. When
|
||||
// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will
|
||||
// return an arbitrary value.
|
||||
|
@ -968,6 +1030,20 @@ func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeApproval() vocab.G
|
|||
return this.gotosocialLikeApprovalMember
|
||||
}
|
||||
|
||||
// GetGoToSocialLikeAuthorization returns the value of this property. When
|
||||
// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization
|
||||
// will return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization {
|
||||
return this.gotosocialLikeAuthorizationMember
|
||||
}
|
||||
|
||||
// GetGoToSocialLikeRequest returns the value of this property. When
|
||||
// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return
|
||||
// an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest {
|
||||
return this.gotosocialLikeRequestMember
|
||||
}
|
||||
|
||||
// GetGoToSocialReplyApproval returns the value of this property. When
|
||||
// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will
|
||||
// return an arbitrary value.
|
||||
|
@ -975,6 +1051,20 @@ func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyApproval() vocab.
|
|||
return this.gotosocialReplyApprovalMember
|
||||
}
|
||||
|
||||
// GetGoToSocialReplyAuthorization returns the value of this property. When
|
||||
// IsGoToSocialReplyAuthorization returns false,
|
||||
// GetGoToSocialReplyAuthorization will return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization {
|
||||
return this.gotosocialReplyAuthorizationMember
|
||||
}
|
||||
|
||||
// GetGoToSocialReplyRequest returns the value of this property. When
|
||||
// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will
|
||||
// return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest {
|
||||
return this.gotosocialReplyRequestMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL {
|
||||
|
@ -1025,6 +1115,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
|
|||
if this.IsGoToSocialAnnounceApproval() {
|
||||
return this.GetGoToSocialAnnounceApproval()
|
||||
}
|
||||
if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return this.GetGoToSocialAnnounceAuthorization()
|
||||
}
|
||||
if this.IsGoToSocialAnnounceRequest() {
|
||||
return this.GetGoToSocialAnnounceRequest()
|
||||
}
|
||||
if this.IsActivityStreamsApplication() {
|
||||
return this.GetActivityStreamsApplication()
|
||||
}
|
||||
|
@ -1106,6 +1202,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
|
|||
if this.IsGoToSocialLikeApproval() {
|
||||
return this.GetGoToSocialLikeApproval()
|
||||
}
|
||||
if this.IsGoToSocialLikeAuthorization() {
|
||||
return this.GetGoToSocialLikeAuthorization()
|
||||
}
|
||||
if this.IsGoToSocialLikeRequest() {
|
||||
return this.GetGoToSocialLikeRequest()
|
||||
}
|
||||
if this.IsActivityStreamsListen() {
|
||||
return this.GetActivityStreamsListen()
|
||||
}
|
||||
|
@ -1160,6 +1262,12 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
|
|||
if this.IsGoToSocialReplyApproval() {
|
||||
return this.GetGoToSocialReplyApproval()
|
||||
}
|
||||
if this.IsGoToSocialReplyAuthorization() {
|
||||
return this.GetGoToSocialReplyAuthorization()
|
||||
}
|
||||
if this.IsGoToSocialReplyRequest() {
|
||||
return this.GetGoToSocialReplyRequest()
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
return this.GetActivityStreamsService()
|
||||
}
|
||||
|
@ -1203,6 +1311,8 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
|
|||
this.IsFunkwhaleAlbum() ||
|
||||
this.IsActivityStreamsAnnounce() ||
|
||||
this.IsGoToSocialAnnounceApproval() ||
|
||||
this.IsGoToSocialAnnounceAuthorization() ||
|
||||
this.IsGoToSocialAnnounceRequest() ||
|
||||
this.IsActivityStreamsApplication() ||
|
||||
this.IsActivityStreamsArrive() ||
|
||||
this.IsActivityStreamsArticle() ||
|
||||
|
@ -1230,6 +1340,8 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
|
|||
this.IsFunkwhaleLibrary() ||
|
||||
this.IsActivityStreamsLike() ||
|
||||
this.IsGoToSocialLikeApproval() ||
|
||||
this.IsGoToSocialLikeAuthorization() ||
|
||||
this.IsGoToSocialLikeRequest() ||
|
||||
this.IsActivityStreamsListen() ||
|
||||
this.IsActivityStreamsMove() ||
|
||||
this.IsActivityStreamsNote() ||
|
||||
|
@ -1248,6 +1360,8 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
|
|||
this.IsActivityStreamsRelationship() ||
|
||||
this.IsActivityStreamsRemove() ||
|
||||
this.IsGoToSocialReplyApproval() ||
|
||||
this.IsGoToSocialReplyAuthorization() ||
|
||||
this.IsGoToSocialReplyRequest() ||
|
||||
this.IsActivityStreamsService() ||
|
||||
this.IsActivityStreamsTentativeAccept() ||
|
||||
this.IsActivityStreamsTentativeReject() ||
|
||||
|
@ -1665,6 +1779,21 @@ func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceApproval() bool
|
|||
return this.gotosocialAnnounceApprovalMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialAnnounceAuthorization returns true if this property has a type of
|
||||
// "AnnounceAuthorization". When true, use the
|
||||
// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization
|
||||
// methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceAuthorization() bool {
|
||||
return this.gotosocialAnnounceAuthorizationMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialAnnounceRequest returns true if this property has a type of
|
||||
// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and
|
||||
// SetGoToSocialAnnounceRequest methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceRequest() bool {
|
||||
return this.gotosocialAnnounceRequestMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialLikeApproval returns true if this property has a type of
|
||||
// "LikeApproval". When true, use the GetGoToSocialLikeApproval and
|
||||
// SetGoToSocialLikeApproval methods to access and set this property.
|
||||
|
@ -1672,6 +1801,20 @@ func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeApproval() bool {
|
|||
return this.gotosocialLikeApprovalMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialLikeAuthorization returns true if this property has a type of
|
||||
// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and
|
||||
// SetGoToSocialLikeAuthorization methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeAuthorization() bool {
|
||||
return this.gotosocialLikeAuthorizationMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialLikeRequest returns true if this property has a type of
|
||||
// "LikeRequest". When true, use the GetGoToSocialLikeRequest and
|
||||
// SetGoToSocialLikeRequest methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeRequest() bool {
|
||||
return this.gotosocialLikeRequestMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialReplyApproval returns true if this property has a type of
|
||||
// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and
|
||||
// SetGoToSocialReplyApproval methods to access and set this property.
|
||||
|
@ -1679,6 +1822,20 @@ func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyApproval() bool {
|
|||
return this.gotosocialReplyApprovalMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialReplyAuthorization returns true if this property has a type of
|
||||
// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization
|
||||
// and SetGoToSocialReplyAuthorization methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyAuthorization() bool {
|
||||
return this.gotosocialReplyAuthorizationMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialReplyRequest returns true if this property has a type of
|
||||
// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and
|
||||
// SetGoToSocialReplyRequest methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyRequest() bool {
|
||||
return this.gotosocialReplyRequestMember != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
|
||||
// to access and set this property
|
||||
func (this ActivityStreamsDescribesProperty) IsIRI() bool {
|
||||
|
@ -1725,6 +1882,10 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsAnnounce().JSONLDContext()
|
||||
} else if this.IsGoToSocialAnnounceApproval() {
|
||||
child = this.GetGoToSocialAnnounceApproval().JSONLDContext()
|
||||
} else if this.IsGoToSocialAnnounceAuthorization() {
|
||||
child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext()
|
||||
} else if this.IsGoToSocialAnnounceRequest() {
|
||||
child = this.GetGoToSocialAnnounceRequest().JSONLDContext()
|
||||
} else if this.IsActivityStreamsApplication() {
|
||||
child = this.GetActivityStreamsApplication().JSONLDContext()
|
||||
} else if this.IsActivityStreamsArrive() {
|
||||
|
@ -1779,6 +1940,10 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsLike().JSONLDContext()
|
||||
} else if this.IsGoToSocialLikeApproval() {
|
||||
child = this.GetGoToSocialLikeApproval().JSONLDContext()
|
||||
} else if this.IsGoToSocialLikeAuthorization() {
|
||||
child = this.GetGoToSocialLikeAuthorization().JSONLDContext()
|
||||
} else if this.IsGoToSocialLikeRequest() {
|
||||
child = this.GetGoToSocialLikeRequest().JSONLDContext()
|
||||
} else if this.IsActivityStreamsListen() {
|
||||
child = this.GetActivityStreamsListen().JSONLDContext()
|
||||
} else if this.IsActivityStreamsMove() {
|
||||
|
@ -1815,6 +1980,10 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsRemove().JSONLDContext()
|
||||
} else if this.IsGoToSocialReplyApproval() {
|
||||
child = this.GetGoToSocialReplyApproval().JSONLDContext()
|
||||
} else if this.IsGoToSocialReplyAuthorization() {
|
||||
child = this.GetGoToSocialReplyAuthorization().JSONLDContext()
|
||||
} else if this.IsGoToSocialReplyRequest() {
|
||||
child = this.GetGoToSocialReplyRequest().JSONLDContext()
|
||||
} else if this.IsActivityStreamsService() {
|
||||
child = this.GetActivityStreamsService().JSONLDContext()
|
||||
} else if this.IsActivityStreamsTentativeAccept() {
|
||||
|
@ -1872,171 +2041,189 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int {
|
|||
if this.IsGoToSocialAnnounceApproval() {
|
||||
return 6
|
||||
}
|
||||
if this.IsActivityStreamsApplication() {
|
||||
if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return 7
|
||||
}
|
||||
if this.IsActivityStreamsArrive() {
|
||||
if this.IsGoToSocialAnnounceRequest() {
|
||||
return 8
|
||||
}
|
||||
if this.IsActivityStreamsArticle() {
|
||||
if this.IsActivityStreamsApplication() {
|
||||
return 9
|
||||
}
|
||||
if this.IsFunkwhaleArtist() {
|
||||
if this.IsActivityStreamsArrive() {
|
||||
return 10
|
||||
}
|
||||
if this.IsActivityStreamsAudio() {
|
||||
if this.IsActivityStreamsArticle() {
|
||||
return 11
|
||||
}
|
||||
if this.IsActivityStreamsBlock() {
|
||||
if this.IsFunkwhaleArtist() {
|
||||
return 12
|
||||
}
|
||||
if this.IsActivityStreamsCollection() {
|
||||
if this.IsActivityStreamsAudio() {
|
||||
return 13
|
||||
}
|
||||
if this.IsActivityStreamsCollectionPage() {
|
||||
if this.IsActivityStreamsBlock() {
|
||||
return 14
|
||||
}
|
||||
if this.IsActivityStreamsCreate() {
|
||||
if this.IsActivityStreamsCollection() {
|
||||
return 15
|
||||
}
|
||||
if this.IsActivityStreamsDelete() {
|
||||
if this.IsActivityStreamsCollectionPage() {
|
||||
return 16
|
||||
}
|
||||
if this.IsActivityStreamsDislike() {
|
||||
if this.IsActivityStreamsCreate() {
|
||||
return 17
|
||||
}
|
||||
if this.IsActivityStreamsDocument() {
|
||||
if this.IsActivityStreamsDelete() {
|
||||
return 18
|
||||
}
|
||||
if this.IsTootEmoji() {
|
||||
if this.IsActivityStreamsDislike() {
|
||||
return 19
|
||||
}
|
||||
if this.IsActivityStreamsEvent() {
|
||||
if this.IsActivityStreamsDocument() {
|
||||
return 20
|
||||
}
|
||||
if this.IsActivityStreamsFlag() {
|
||||
if this.IsTootEmoji() {
|
||||
return 21
|
||||
}
|
||||
if this.IsActivityStreamsFollow() {
|
||||
if this.IsActivityStreamsEvent() {
|
||||
return 22
|
||||
}
|
||||
if this.IsActivityStreamsGroup() {
|
||||
if this.IsActivityStreamsFlag() {
|
||||
return 23
|
||||
}
|
||||
if this.IsTootIdentityProof() {
|
||||
if this.IsActivityStreamsFollow() {
|
||||
return 24
|
||||
}
|
||||
if this.IsActivityStreamsIgnore() {
|
||||
if this.IsActivityStreamsGroup() {
|
||||
return 25
|
||||
}
|
||||
if this.IsActivityStreamsImage() {
|
||||
if this.IsTootIdentityProof() {
|
||||
return 26
|
||||
}
|
||||
if this.IsActivityStreamsIntransitiveActivity() {
|
||||
if this.IsActivityStreamsIgnore() {
|
||||
return 27
|
||||
}
|
||||
if this.IsActivityStreamsInvite() {
|
||||
if this.IsActivityStreamsImage() {
|
||||
return 28
|
||||
}
|
||||
if this.IsActivityStreamsJoin() {
|
||||
if this.IsActivityStreamsIntransitiveActivity() {
|
||||
return 29
|
||||
}
|
||||
if this.IsActivityStreamsLeave() {
|
||||
if this.IsActivityStreamsInvite() {
|
||||
return 30
|
||||
}
|
||||
if this.IsFunkwhaleLibrary() {
|
||||
if this.IsActivityStreamsJoin() {
|
||||
return 31
|
||||
}
|
||||
if this.IsActivityStreamsLike() {
|
||||
if this.IsActivityStreamsLeave() {
|
||||
return 32
|
||||
}
|
||||
if this.IsGoToSocialLikeApproval() {
|
||||
if this.IsFunkwhaleLibrary() {
|
||||
return 33
|
||||
}
|
||||
if this.IsActivityStreamsListen() {
|
||||
if this.IsActivityStreamsLike() {
|
||||
return 34
|
||||
}
|
||||
if this.IsActivityStreamsMove() {
|
||||
if this.IsGoToSocialLikeApproval() {
|
||||
return 35
|
||||
}
|
||||
if this.IsActivityStreamsNote() {
|
||||
if this.IsGoToSocialLikeAuthorization() {
|
||||
return 36
|
||||
}
|
||||
if this.IsActivityStreamsOffer() {
|
||||
if this.IsGoToSocialLikeRequest() {
|
||||
return 37
|
||||
}
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
if this.IsActivityStreamsListen() {
|
||||
return 38
|
||||
}
|
||||
if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
if this.IsActivityStreamsMove() {
|
||||
return 39
|
||||
}
|
||||
if this.IsActivityStreamsOrganization() {
|
||||
if this.IsActivityStreamsNote() {
|
||||
return 40
|
||||
}
|
||||
if this.IsActivityStreamsPage() {
|
||||
if this.IsActivityStreamsOffer() {
|
||||
return 41
|
||||
}
|
||||
if this.IsActivityStreamsPerson() {
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsPlace() {
|
||||
if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsProfile() {
|
||||
if this.IsActivityStreamsOrganization() {
|
||||
return 44
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
if this.IsActivityStreamsPage() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsActivityStreamsPerson() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsPlace() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsProfile() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 50
|
||||
}
|
||||
if this.IsGoToSocialReplyApproval() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsGoToSocialReplyApproval() {
|
||||
return 55
|
||||
}
|
||||
if this.IsFunkwhaleTrack() {
|
||||
if this.IsGoToSocialReplyAuthorization() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsGoToSocialReplyRequest() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 61
|
||||
}
|
||||
if this.IsFunkwhaleTrack() {
|
||||
return 62
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 63
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 64
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 65
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 66
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 67
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -2068,6 +2255,10 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
|
|||
return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
|
||||
} else if this.IsGoToSocialAnnounceApproval() {
|
||||
return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval())
|
||||
} else if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization())
|
||||
} else if this.IsGoToSocialAnnounceRequest() {
|
||||
return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest())
|
||||
} else if this.IsActivityStreamsApplication() {
|
||||
return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
|
||||
} else if this.IsActivityStreamsArrive() {
|
||||
|
@ -2122,6 +2313,10 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
|
|||
return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
|
||||
} else if this.IsGoToSocialLikeApproval() {
|
||||
return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval())
|
||||
} else if this.IsGoToSocialLikeAuthorization() {
|
||||
return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization())
|
||||
} else if this.IsGoToSocialLikeRequest() {
|
||||
return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest())
|
||||
} else if this.IsActivityStreamsListen() {
|
||||
return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
|
||||
} else if this.IsActivityStreamsMove() {
|
||||
|
@ -2158,6 +2353,10 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
|
|||
return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
|
||||
} else if this.IsGoToSocialReplyApproval() {
|
||||
return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval())
|
||||
} else if this.IsGoToSocialReplyAuthorization() {
|
||||
return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization())
|
||||
} else if this.IsGoToSocialReplyRequest() {
|
||||
return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest())
|
||||
} else if this.IsActivityStreamsService() {
|
||||
return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
|
||||
} else if this.IsActivityStreamsTentativeAccept() {
|
||||
|
@ -2212,6 +2411,10 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsAnnounce().Serialize()
|
||||
} else if this.IsGoToSocialAnnounceApproval() {
|
||||
return this.GetGoToSocialAnnounceApproval().Serialize()
|
||||
} else if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return this.GetGoToSocialAnnounceAuthorization().Serialize()
|
||||
} else if this.IsGoToSocialAnnounceRequest() {
|
||||
return this.GetGoToSocialAnnounceRequest().Serialize()
|
||||
} else if this.IsActivityStreamsApplication() {
|
||||
return this.GetActivityStreamsApplication().Serialize()
|
||||
} else if this.IsActivityStreamsArrive() {
|
||||
|
@ -2266,6 +2469,10 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsLike().Serialize()
|
||||
} else if this.IsGoToSocialLikeApproval() {
|
||||
return this.GetGoToSocialLikeApproval().Serialize()
|
||||
} else if this.IsGoToSocialLikeAuthorization() {
|
||||
return this.GetGoToSocialLikeAuthorization().Serialize()
|
||||
} else if this.IsGoToSocialLikeRequest() {
|
||||
return this.GetGoToSocialLikeRequest().Serialize()
|
||||
} else if this.IsActivityStreamsListen() {
|
||||
return this.GetActivityStreamsListen().Serialize()
|
||||
} else if this.IsActivityStreamsMove() {
|
||||
|
@ -2302,6 +2509,10 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsRemove().Serialize()
|
||||
} else if this.IsGoToSocialReplyApproval() {
|
||||
return this.GetGoToSocialReplyApproval().Serialize()
|
||||
} else if this.IsGoToSocialReplyAuthorization() {
|
||||
return this.GetGoToSocialReplyAuthorization().Serialize()
|
||||
} else if this.IsGoToSocialReplyRequest() {
|
||||
return this.GetGoToSocialReplyRequest().Serialize()
|
||||
} else if this.IsActivityStreamsService() {
|
||||
return this.GetActivityStreamsService().Serialize()
|
||||
} else if this.IsActivityStreamsTentativeAccept() {
|
||||
|
@ -2727,6 +2938,20 @@ func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceApproval(v vo
|
|||
this.gotosocialAnnounceApprovalMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling
|
||||
// IsGoToSocialAnnounceAuthorization afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) {
|
||||
this.Clear()
|
||||
this.gotosocialAnnounceAuthorizationMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialAnnounceRequest sets the value of this property. Calling
|
||||
// IsGoToSocialAnnounceRequest afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) {
|
||||
this.Clear()
|
||||
this.gotosocialAnnounceRequestMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialLikeApproval sets the value of this property. Calling
|
||||
// IsGoToSocialLikeApproval afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) {
|
||||
|
@ -2734,6 +2959,20 @@ func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab.
|
|||
this.gotosocialLikeApprovalMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialLikeAuthorization sets the value of this property. Calling
|
||||
// IsGoToSocialLikeAuthorization afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) {
|
||||
this.Clear()
|
||||
this.gotosocialLikeAuthorizationMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialLikeRequest sets the value of this property. Calling
|
||||
// IsGoToSocialLikeRequest afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) {
|
||||
this.Clear()
|
||||
this.gotosocialLikeRequestMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialReplyApproval sets the value of this property. Calling
|
||||
// IsGoToSocialReplyApproval afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) {
|
||||
|
@ -2741,6 +2980,20 @@ func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab
|
|||
this.gotosocialReplyApprovalMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialReplyAuthorization sets the value of this property. Calling
|
||||
// IsGoToSocialReplyAuthorization afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) {
|
||||
this.Clear()
|
||||
this.gotosocialReplyAuthorizationMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialReplyRequest sets the value of this property. Calling
|
||||
// IsGoToSocialReplyRequest afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) {
|
||||
this.Clear()
|
||||
this.gotosocialReplyRequestMember = v
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
|
@ -2799,6 +3052,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
|
|||
this.SetGoToSocialAnnounceApproval(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok {
|
||||
this.SetGoToSocialAnnounceAuthorization(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok {
|
||||
this.SetGoToSocialAnnounceRequest(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsApplication); ok {
|
||||
this.SetActivityStreamsApplication(v)
|
||||
return nil
|
||||
|
@ -2907,6 +3168,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
|
|||
this.SetGoToSocialLikeApproval(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok {
|
||||
this.SetGoToSocialLikeAuthorization(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialLikeRequest); ok {
|
||||
this.SetGoToSocialLikeRequest(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsListen); ok {
|
||||
this.SetActivityStreamsListen(v)
|
||||
return nil
|
||||
|
@ -2979,6 +3248,14 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
|
|||
this.SetGoToSocialReplyApproval(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok {
|
||||
this.SetGoToSocialReplyAuthorization(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialReplyRequest); ok {
|
||||
this.SetGoToSocialReplyRequest(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsService); ok {
|
||||
this.SetActivityStreamsService(v)
|
||||
return nil
|
||||
|
|
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -140,6 +148,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsListen" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
@ -217,6 +233,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -140,6 +148,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsListen" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
@ -217,6 +233,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,6 +33,14 @@ type privateManager interface {
|
|||
// method for the "GoToSocialAnnounceApproval" non-functional property
|
||||
// in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
|
||||
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialAnnounceAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
|
||||
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialAnnounceRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsApplication" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
|
@ -143,6 +151,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialLikeApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
|
||||
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialLikeAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
|
||||
// DeserializeLikeRequestGoToSocial returns the deserialization method for
|
||||
// the "GoToSocialLikeRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "ActivityStreamsLink" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
@ -228,6 +244,14 @@ type privateManager interface {
|
|||
// for the "GoToSocialReplyApproval" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
|
||||
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
|
||||
// method for the "GoToSocialReplyAuthorization" non-functional
|
||||
// property in the vocabulary "GoToSocial"
|
||||
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
|
||||
// DeserializeReplyRequestGoToSocial returns the deserialization method
|
||||
// for the "GoToSocialReplyRequest" non-functional property in the
|
||||
// vocabulary "GoToSocial"
|
||||
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsService" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
|
|
|
@ -22,6 +22,8 @@ type ActivityStreamsSourceProperty struct {
|
|||
funkwhaleAlbumMember vocab.FunkwhaleAlbum
|
||||
activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
|
||||
gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval
|
||||
gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization
|
||||
gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest
|
||||
activitystreamsApplicationMember vocab.ActivityStreamsApplication
|
||||
activitystreamsArriveMember vocab.ActivityStreamsArrive
|
||||
activitystreamsArticleMember vocab.ActivityStreamsArticle
|
||||
|
@ -50,6 +52,8 @@ type ActivityStreamsSourceProperty struct {
|
|||
funkwhaleLibraryMember vocab.FunkwhaleLibrary
|
||||
activitystreamsLikeMember vocab.ActivityStreamsLike
|
||||
gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval
|
||||
gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization
|
||||
gotosocialLikeRequestMember vocab.GoToSocialLikeRequest
|
||||
activitystreamsListenMember vocab.ActivityStreamsListen
|
||||
activitystreamsMentionMember vocab.ActivityStreamsMention
|
||||
activitystreamsMoveMember vocab.ActivityStreamsMove
|
||||
|
@ -69,6 +73,8 @@ type ActivityStreamsSourceProperty struct {
|
|||
activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
|
||||
activitystreamsRemoveMember vocab.ActivityStreamsRemove
|
||||
gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval
|
||||
gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization
|
||||
gotosocialReplyRequestMember vocab.GoToSocialReplyRequest
|
||||
activitystreamsServiceMember vocab.ActivityStreamsService
|
||||
activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
|
||||
activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
|
||||
|
@ -160,6 +166,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
gotosocialAnnounceApprovalMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
gotosocialAnnounceAuthorizationMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
gotosocialAnnounceRequestMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
activitystreamsApplicationMember: v,
|
||||
|
@ -328,6 +346,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
gotosocialLikeApprovalMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
gotosocialLikeAuthorizationMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
gotosocialLikeRequestMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
activitystreamsListenMember: v,
|
||||
|
@ -442,6 +472,18 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
gotosocialReplyApprovalMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
gotosocialReplyAuthorizationMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
gotosocialReplyRequestMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
activitystreamsServiceMember: v,
|
||||
|
@ -529,6 +571,8 @@ func (this *ActivityStreamsSourceProperty) Clear() {
|
|||
this.funkwhaleAlbumMember = nil
|
||||
this.activitystreamsAnnounceMember = nil
|
||||
this.gotosocialAnnounceApprovalMember = nil
|
||||
this.gotosocialAnnounceAuthorizationMember = nil
|
||||
this.gotosocialAnnounceRequestMember = nil
|
||||
this.activitystreamsApplicationMember = nil
|
||||
this.activitystreamsArriveMember = nil
|
||||
this.activitystreamsArticleMember = nil
|
||||
|
@ -557,6 +601,8 @@ func (this *ActivityStreamsSourceProperty) Clear() {
|
|||
this.funkwhaleLibraryMember = nil
|
||||
this.activitystreamsLikeMember = nil
|
||||
this.gotosocialLikeApprovalMember = nil
|
||||
this.gotosocialLikeAuthorizationMember = nil
|
||||
this.gotosocialLikeRequestMember = nil
|
||||
this.activitystreamsListenMember = nil
|
||||
this.activitystreamsMentionMember = nil
|
||||
this.activitystreamsMoveMember = nil
|
||||
|
@ -576,6 +622,8 @@ func (this *ActivityStreamsSourceProperty) Clear() {
|
|||
this.activitystreamsRelationshipMember = nil
|
||||
this.activitystreamsRemoveMember = nil
|
||||
this.gotosocialReplyApprovalMember = nil
|
||||
this.gotosocialReplyAuthorizationMember = nil
|
||||
this.gotosocialReplyRequestMember = nil
|
||||
this.activitystreamsServiceMember = nil
|
||||
this.activitystreamsTentativeAcceptMember = nil
|
||||
this.activitystreamsTentativeRejectMember = nil
|
||||
|
@ -999,6 +1047,20 @@ func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceApproval() vocab.
|
|||
return this.gotosocialAnnounceApprovalMember
|
||||
}
|
||||
|
||||
// GetGoToSocialAnnounceAuthorization returns the value of this property. When
|
||||
// IsGoToSocialAnnounceAuthorization returns false,
|
||||
// GetGoToSocialAnnounceAuthorization will return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization {
|
||||
return this.gotosocialAnnounceAuthorizationMember
|
||||
}
|
||||
|
||||
// GetGoToSocialAnnounceRequest returns the value of this property. When
|
||||
// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest
|
||||
// will return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest {
|
||||
return this.gotosocialAnnounceRequestMember
|
||||
}
|
||||
|
||||
// GetGoToSocialLikeApproval returns the value of this property. When
|
||||
// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will
|
||||
// return an arbitrary value.
|
||||
|
@ -1006,6 +1068,20 @@ func (this ActivityStreamsSourceProperty) GetGoToSocialLikeApproval() vocab.GoTo
|
|||
return this.gotosocialLikeApprovalMember
|
||||
}
|
||||
|
||||
// GetGoToSocialLikeAuthorization returns the value of this property. When
|
||||
// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization
|
||||
// will return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization {
|
||||
return this.gotosocialLikeAuthorizationMember
|
||||
}
|
||||
|
||||
// GetGoToSocialLikeRequest returns the value of this property. When
|
||||
// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return
|
||||
// an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest {
|
||||
return this.gotosocialLikeRequestMember
|
||||
}
|
||||
|
||||
// GetGoToSocialReplyApproval returns the value of this property. When
|
||||
// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will
|
||||
// return an arbitrary value.
|
||||
|
@ -1013,6 +1089,20 @@ func (this ActivityStreamsSourceProperty) GetGoToSocialReplyApproval() vocab.GoT
|
|||
return this.gotosocialReplyApprovalMember
|
||||
}
|
||||
|
||||
// GetGoToSocialReplyAuthorization returns the value of this property. When
|
||||
// IsGoToSocialReplyAuthorization returns false,
|
||||
// GetGoToSocialReplyAuthorization will return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization {
|
||||
return this.gotosocialReplyAuthorizationMember
|
||||
}
|
||||
|
||||
// GetGoToSocialReplyRequest returns the value of this property. When
|
||||
// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will
|
||||
// return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest {
|
||||
return this.gotosocialReplyRequestMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetIRI() *url.URL {
|
||||
|
@ -1072,6 +1162,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
|
|||
if this.IsGoToSocialAnnounceApproval() {
|
||||
return this.GetGoToSocialAnnounceApproval()
|
||||
}
|
||||
if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return this.GetGoToSocialAnnounceAuthorization()
|
||||
}
|
||||
if this.IsGoToSocialAnnounceRequest() {
|
||||
return this.GetGoToSocialAnnounceRequest()
|
||||
}
|
||||
if this.IsActivityStreamsApplication() {
|
||||
return this.GetActivityStreamsApplication()
|
||||
}
|
||||
|
@ -1156,6 +1252,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
|
|||
if this.IsGoToSocialLikeApproval() {
|
||||
return this.GetGoToSocialLikeApproval()
|
||||
}
|
||||
if this.IsGoToSocialLikeAuthorization() {
|
||||
return this.GetGoToSocialLikeAuthorization()
|
||||
}
|
||||
if this.IsGoToSocialLikeRequest() {
|
||||
return this.GetGoToSocialLikeRequest()
|
||||
}
|
||||
if this.IsActivityStreamsListen() {
|
||||
return this.GetActivityStreamsListen()
|
||||
}
|
||||
|
@ -1213,6 +1315,12 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
|
|||
if this.IsGoToSocialReplyApproval() {
|
||||
return this.GetGoToSocialReplyApproval()
|
||||
}
|
||||
if this.IsGoToSocialReplyAuthorization() {
|
||||
return this.GetGoToSocialReplyAuthorization()
|
||||
}
|
||||
if this.IsGoToSocialReplyRequest() {
|
||||
return this.GetGoToSocialReplyRequest()
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
return this.GetActivityStreamsService()
|
||||
}
|
||||
|
@ -1257,6 +1365,8 @@ func (this ActivityStreamsSourceProperty) HasAny() bool {
|
|||
this.IsFunkwhaleAlbum() ||
|
||||
this.IsActivityStreamsAnnounce() ||
|
||||
this.IsGoToSocialAnnounceApproval() ||
|
||||
this.IsGoToSocialAnnounceAuthorization() ||
|
||||
this.IsGoToSocialAnnounceRequest() ||
|
||||
this.IsActivityStreamsApplication() ||
|
||||
this.IsActivityStreamsArrive() ||
|
||||
this.IsActivityStreamsArticle() ||
|
||||
|
@ -1285,6 +1395,8 @@ func (this ActivityStreamsSourceProperty) HasAny() bool {
|
|||
this.IsFunkwhaleLibrary() ||
|
||||
this.IsActivityStreamsLike() ||
|
||||
this.IsGoToSocialLikeApproval() ||
|
||||
this.IsGoToSocialLikeAuthorization() ||
|
||||
this.IsGoToSocialLikeRequest() ||
|
||||
this.IsActivityStreamsListen() ||
|
||||
this.IsActivityStreamsMention() ||
|
||||
this.IsActivityStreamsMove() ||
|
||||
|
@ -1304,6 +1416,8 @@ func (this ActivityStreamsSourceProperty) HasAny() bool {
|
|||
this.IsActivityStreamsRelationship() ||
|
||||
this.IsActivityStreamsRemove() ||
|
||||
this.IsGoToSocialReplyApproval() ||
|
||||
this.IsGoToSocialReplyAuthorization() ||
|
||||
this.IsGoToSocialReplyRequest() ||
|
||||
this.IsActivityStreamsService() ||
|
||||
this.IsActivityStreamsTentativeAccept() ||
|
||||
this.IsActivityStreamsTentativeReject() ||
|
||||
|
@ -1735,6 +1849,21 @@ func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceApproval() bool {
|
|||
return this.gotosocialAnnounceApprovalMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialAnnounceAuthorization returns true if this property has a type of
|
||||
// "AnnounceAuthorization". When true, use the
|
||||
// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization
|
||||
// methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceAuthorization() bool {
|
||||
return this.gotosocialAnnounceAuthorizationMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialAnnounceRequest returns true if this property has a type of
|
||||
// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and
|
||||
// SetGoToSocialAnnounceRequest methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceRequest() bool {
|
||||
return this.gotosocialAnnounceRequestMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialLikeApproval returns true if this property has a type of
|
||||
// "LikeApproval". When true, use the GetGoToSocialLikeApproval and
|
||||
// SetGoToSocialLikeApproval methods to access and set this property.
|
||||
|
@ -1742,6 +1871,20 @@ func (this ActivityStreamsSourceProperty) IsGoToSocialLikeApproval() bool {
|
|||
return this.gotosocialLikeApprovalMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialLikeAuthorization returns true if this property has a type of
|
||||
// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and
|
||||
// SetGoToSocialLikeAuthorization methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsGoToSocialLikeAuthorization() bool {
|
||||
return this.gotosocialLikeAuthorizationMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialLikeRequest returns true if this property has a type of
|
||||
// "LikeRequest". When true, use the GetGoToSocialLikeRequest and
|
||||
// SetGoToSocialLikeRequest methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsGoToSocialLikeRequest() bool {
|
||||
return this.gotosocialLikeRequestMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialReplyApproval returns true if this property has a type of
|
||||
// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and
|
||||
// SetGoToSocialReplyApproval methods to access and set this property.
|
||||
|
@ -1749,6 +1892,20 @@ func (this ActivityStreamsSourceProperty) IsGoToSocialReplyApproval() bool {
|
|||
return this.gotosocialReplyApprovalMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialReplyAuthorization returns true if this property has a type of
|
||||
// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization
|
||||
// and SetGoToSocialReplyAuthorization methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsGoToSocialReplyAuthorization() bool {
|
||||
return this.gotosocialReplyAuthorizationMember != nil
|
||||
}
|
||||
|
||||
// IsGoToSocialReplyRequest returns true if this property has a type of
|
||||
// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and
|
||||
// SetGoToSocialReplyRequest methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsGoToSocialReplyRequest() bool {
|
||||
return this.gotosocialReplyRequestMember != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
|
||||
// to access and set this property
|
||||
func (this ActivityStreamsSourceProperty) IsIRI() bool {
|
||||
|
@ -1804,6 +1961,10 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsAnnounce().JSONLDContext()
|
||||
} else if this.IsGoToSocialAnnounceApproval() {
|
||||
child = this.GetGoToSocialAnnounceApproval().JSONLDContext()
|
||||
} else if this.IsGoToSocialAnnounceAuthorization() {
|
||||
child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext()
|
||||
} else if this.IsGoToSocialAnnounceRequest() {
|
||||
child = this.GetGoToSocialAnnounceRequest().JSONLDContext()
|
||||
} else if this.IsActivityStreamsApplication() {
|
||||
child = this.GetActivityStreamsApplication().JSONLDContext()
|
||||
} else if this.IsActivityStreamsArrive() {
|
||||
|
@ -1860,6 +2021,10 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsLike().JSONLDContext()
|
||||
} else if this.IsGoToSocialLikeApproval() {
|
||||
child = this.GetGoToSocialLikeApproval().JSONLDContext()
|
||||
} else if this.IsGoToSocialLikeAuthorization() {
|
||||
child = this.GetGoToSocialLikeAuthorization().JSONLDContext()
|
||||
} else if this.IsGoToSocialLikeRequest() {
|
||||
child = this.GetGoToSocialLikeRequest().JSONLDContext()
|
||||
} else if this.IsActivityStreamsListen() {
|
||||
child = this.GetActivityStreamsListen().JSONLDContext()
|
||||
} else if this.IsActivityStreamsMention() {
|
||||
|
@ -1898,6 +2063,10 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsRemove().JSONLDContext()
|
||||
} else if this.IsGoToSocialReplyApproval() {
|
||||
child = this.GetGoToSocialReplyApproval().JSONLDContext()
|
||||
} else if this.IsGoToSocialReplyAuthorization() {
|
||||
child = this.GetGoToSocialReplyAuthorization().JSONLDContext()
|
||||
} else if this.IsGoToSocialReplyRequest() {
|
||||
child = this.GetGoToSocialReplyRequest().JSONLDContext()
|
||||
} else if this.IsActivityStreamsService() {
|
||||
child = this.GetActivityStreamsService().JSONLDContext()
|
||||
} else if this.IsActivityStreamsTentativeAccept() {
|
||||
|
@ -1958,177 +2127,195 @@ func (this ActivityStreamsSourceProperty) KindIndex() int {
|
|||
if this.IsGoToSocialAnnounceApproval() {
|
||||
return 7
|
||||
}
|
||||
if this.IsActivityStreamsApplication() {
|
||||
if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return 8
|
||||
}
|
||||
if this.IsActivityStreamsArrive() {
|
||||
if this.IsGoToSocialAnnounceRequest() {
|
||||
return 9
|
||||
}
|
||||
if this.IsActivityStreamsArticle() {
|
||||
if this.IsActivityStreamsApplication() {
|
||||
return 10
|
||||
}
|
||||
if this.IsFunkwhaleArtist() {
|
||||
if this.IsActivityStreamsArrive() {
|
||||
return 11
|
||||
}
|
||||
if this.IsActivityStreamsAudio() {
|
||||
if this.IsActivityStreamsArticle() {
|
||||
return 12
|
||||
}
|
||||
if this.IsActivityStreamsBlock() {
|
||||
if this.IsFunkwhaleArtist() {
|
||||
return 13
|
||||
}
|
||||
if this.IsActivityStreamsCollection() {
|
||||
if this.IsActivityStreamsAudio() {
|
||||
return 14
|
||||
}
|
||||
if this.IsActivityStreamsCollectionPage() {
|
||||
if this.IsActivityStreamsBlock() {
|
||||
return 15
|
||||
}
|
||||
if this.IsActivityStreamsCreate() {
|
||||
if this.IsActivityStreamsCollection() {
|
||||
return 16
|
||||
}
|
||||
if this.IsActivityStreamsDelete() {
|
||||
if this.IsActivityStreamsCollectionPage() {
|
||||
return 17
|
||||
}
|
||||
if this.IsActivityStreamsDislike() {
|
||||
if this.IsActivityStreamsCreate() {
|
||||
return 18
|
||||
}
|
||||
if this.IsActivityStreamsDocument() {
|
||||
if this.IsActivityStreamsDelete() {
|
||||
return 19
|
||||
}
|
||||
if this.IsTootEmoji() {
|
||||
if this.IsActivityStreamsDislike() {
|
||||
return 20
|
||||
}
|
||||
if this.IsActivityStreamsEvent() {
|
||||
if this.IsActivityStreamsDocument() {
|
||||
return 21
|
||||
}
|
||||
if this.IsActivityStreamsFlag() {
|
||||
if this.IsTootEmoji() {
|
||||
return 22
|
||||
}
|
||||
if this.IsActivityStreamsFollow() {
|
||||
if this.IsActivityStreamsEvent() {
|
||||
return 23
|
||||
}
|
||||
if this.IsActivityStreamsGroup() {
|
||||
if this.IsActivityStreamsFlag() {
|
||||
return 24
|
||||
}
|
||||
if this.IsTootHashtag() {
|
||||
if this.IsActivityStreamsFollow() {
|
||||
return 25
|
||||
}
|
||||
if this.IsTootIdentityProof() {
|
||||
if this.IsActivityStreamsGroup() {
|
||||
return 26
|
||||
}
|
||||
if this.IsActivityStreamsIgnore() {
|
||||
if this.IsTootHashtag() {
|
||||
return 27
|
||||
}
|
||||
if this.IsActivityStreamsImage() {
|
||||
if this.IsTootIdentityProof() {
|
||||
return 28
|
||||
}
|
||||
if this.IsActivityStreamsIntransitiveActivity() {
|
||||
if this.IsActivityStreamsIgnore() {
|
||||
return 29
|
||||
}
|
||||
if this.IsActivityStreamsInvite() {
|
||||
if this.IsActivityStreamsImage() {
|
||||
return 30
|
||||
}
|
||||
if this.IsActivityStreamsJoin() {
|
||||
if this.IsActivityStreamsIntransitiveActivity() {
|
||||
return 31
|
||||
}
|
||||
if this.IsActivityStreamsLeave() {
|
||||
if this.IsActivityStreamsInvite() {
|
||||
return 32
|
||||
}
|
||||
if this.IsFunkwhaleLibrary() {
|
||||
if this.IsActivityStreamsJoin() {
|
||||
return 33
|
||||
}
|
||||
if this.IsActivityStreamsLike() {
|
||||
if this.IsActivityStreamsLeave() {
|
||||
return 34
|
||||
}
|
||||
if this.IsGoToSocialLikeApproval() {
|
||||
if this.IsFunkwhaleLibrary() {
|
||||
return 35
|
||||
}
|
||||
if this.IsActivityStreamsListen() {
|
||||
if this.IsActivityStreamsLike() {
|
||||
return 36
|
||||
}
|
||||
if this.IsActivityStreamsMention() {
|
||||
if this.IsGoToSocialLikeApproval() {
|
||||
return 37
|
||||
}
|
||||
if this.IsActivityStreamsMove() {
|
||||
if this.IsGoToSocialLikeAuthorization() {
|
||||
return 38
|
||||
}
|
||||
if this.IsActivityStreamsNote() {
|
||||
if this.IsGoToSocialLikeRequest() {
|
||||
return 39
|
||||
}
|
||||
if this.IsActivityStreamsOffer() {
|
||||
if this.IsActivityStreamsListen() {
|
||||
return 40
|
||||
}
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
if this.IsActivityStreamsMention() {
|
||||
return 41
|
||||
}
|
||||
if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
if this.IsActivityStreamsMove() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsOrganization() {
|
||||
if this.IsActivityStreamsNote() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsPage() {
|
||||
if this.IsActivityStreamsOffer() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsPerson() {
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsPlace() {
|
||||
if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsProfile() {
|
||||
if this.IsActivityStreamsOrganization() {
|
||||
return 47
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
if this.IsActivityStreamsPage() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsActivityStreamsPerson() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsPlace() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsProfile() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 53
|
||||
}
|
||||
if this.IsGoToSocialReplyApproval() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsGoToSocialReplyApproval() {
|
||||
return 58
|
||||
}
|
||||
if this.IsFunkwhaleTrack() {
|
||||
if this.IsGoToSocialReplyAuthorization() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsGoToSocialReplyRequest() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 62
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 63
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 64
|
||||
}
|
||||
if this.IsFunkwhaleTrack() {
|
||||
return 65
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 66
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 67
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 68
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 69
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 70
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -2162,6 +2349,10 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource
|
|||
return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
|
||||
} else if this.IsGoToSocialAnnounceApproval() {
|
||||
return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval())
|
||||
} else if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization())
|
||||
} else if this.IsGoToSocialAnnounceRequest() {
|
||||
return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest())
|
||||
} else if this.IsActivityStreamsApplication() {
|
||||
return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
|
||||
} else if this.IsActivityStreamsArrive() {
|
||||
|
@ -2218,6 +2409,10 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource
|
|||
return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
|
||||
} else if this.IsGoToSocialLikeApproval() {
|
||||
return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval())
|
||||
} else if this.IsGoToSocialLikeAuthorization() {
|
||||
return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization())
|
||||
} else if this.IsGoToSocialLikeRequest() {
|
||||
return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest())
|
||||
} else if this.IsActivityStreamsListen() {
|
||||
return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
|
||||
} else if this.IsActivityStreamsMention() {
|
||||
|
@ -2256,6 +2451,10 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource
|
|||
return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
|
||||
} else if this.IsGoToSocialReplyApproval() {
|
||||
return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval())
|
||||
} else if this.IsGoToSocialReplyAuthorization() {
|
||||
return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization())
|
||||
} else if this.IsGoToSocialReplyRequest() {
|
||||
return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest())
|
||||
} else if this.IsActivityStreamsService() {
|
||||
return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
|
||||
} else if this.IsActivityStreamsTentativeAccept() {
|
||||
|
@ -2312,6 +2511,10 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsAnnounce().Serialize()
|
||||
} else if this.IsGoToSocialAnnounceApproval() {
|
||||
return this.GetGoToSocialAnnounceApproval().Serialize()
|
||||
} else if this.IsGoToSocialAnnounceAuthorization() {
|
||||
return this.GetGoToSocialAnnounceAuthorization().Serialize()
|
||||
} else if this.IsGoToSocialAnnounceRequest() {
|
||||
return this.GetGoToSocialAnnounceRequest().Serialize()
|
||||
} else if this.IsActivityStreamsApplication() {
|
||||
return this.GetActivityStreamsApplication().Serialize()
|
||||
} else if this.IsActivityStreamsArrive() {
|
||||
|
@ -2368,6 +2571,10 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsLike().Serialize()
|
||||
} else if this.IsGoToSocialLikeApproval() {
|
||||
return this.GetGoToSocialLikeApproval().Serialize()
|
||||
} else if this.IsGoToSocialLikeAuthorization() {
|
||||
return this.GetGoToSocialLikeAuthorization().Serialize()
|
||||
} else if this.IsGoToSocialLikeRequest() {
|
||||
return this.GetGoToSocialLikeRequest().Serialize()
|
||||
} else if this.IsActivityStreamsListen() {
|
||||
return this.GetActivityStreamsListen().Serialize()
|
||||
} else if this.IsActivityStreamsMention() {
|
||||
|
@ -2406,6 +2613,10 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsRemove().Serialize()
|
||||
} else if this.IsGoToSocialReplyApproval() {
|
||||
return this.GetGoToSocialReplyApproval().Serialize()
|
||||
} else if this.IsGoToSocialReplyAuthorization() {
|
||||
return this.GetGoToSocialReplyAuthorization().Serialize()
|
||||
} else if this.IsGoToSocialReplyRequest() {
|
||||
return this.GetGoToSocialReplyRequest().Serialize()
|
||||
} else if this.IsActivityStreamsService() {
|
||||
return this.GetActivityStreamsService().Serialize()
|
||||
} else if this.IsActivityStreamsTentativeAccept() {
|
||||
|
@ -2845,6 +3056,20 @@ func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceApproval(v vocab
|
|||
this.gotosocialAnnounceApprovalMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling
|
||||
// IsGoToSocialAnnounceAuthorization afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) {
|
||||
this.Clear()
|
||||
this.gotosocialAnnounceAuthorizationMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialAnnounceRequest sets the value of this property. Calling
|
||||
// IsGoToSocialAnnounceRequest afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) {
|
||||
this.Clear()
|
||||
this.gotosocialAnnounceRequestMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialLikeApproval sets the value of this property. Calling
|
||||
// IsGoToSocialLikeApproval afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) {
|
||||
|
@ -2852,6 +3077,20 @@ func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoT
|
|||
this.gotosocialLikeApprovalMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialLikeAuthorization sets the value of this property. Calling
|
||||
// IsGoToSocialLikeAuthorization afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) {
|
||||
this.Clear()
|
||||
this.gotosocialLikeAuthorizationMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialLikeRequest sets the value of this property. Calling
|
||||
// IsGoToSocialLikeRequest afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) {
|
||||
this.Clear()
|
||||
this.gotosocialLikeRequestMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialReplyApproval sets the value of this property. Calling
|
||||
// IsGoToSocialReplyApproval afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) {
|
||||
|
@ -2859,6 +3098,20 @@ func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.Go
|
|||
this.gotosocialReplyApprovalMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialReplyAuthorization sets the value of this property. Calling
|
||||
// IsGoToSocialReplyAuthorization afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) {
|
||||
this.Clear()
|
||||
this.gotosocialReplyAuthorizationMember = v
|
||||
}
|
||||
|
||||
// SetGoToSocialReplyRequest sets the value of this property. Calling
|
||||
// IsGoToSocialReplyRequest afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) {
|
||||
this.Clear()
|
||||
this.gotosocialReplyRequestMember = v
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
|
@ -2928,6 +3181,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
|
|||
this.SetGoToSocialAnnounceApproval(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok {
|
||||
this.SetGoToSocialAnnounceAuthorization(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok {
|
||||
this.SetGoToSocialAnnounceRequest(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsApplication); ok {
|
||||
this.SetActivityStreamsApplication(v)
|
||||
return nil
|
||||
|
@ -3040,6 +3301,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
|
|||
this.SetGoToSocialLikeApproval(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok {
|
||||
this.SetGoToSocialLikeAuthorization(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialLikeRequest); ok {
|
||||
this.SetGoToSocialLikeRequest(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsListen); ok {
|
||||
this.SetActivityStreamsListen(v)
|
||||
return nil
|
||||
|
@ -3116,6 +3385,14 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
|
|||
this.SetGoToSocialReplyApproval(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok {
|
||||
this.SetGoToSocialReplyAuthorization(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.GoToSocialReplyRequest); ok {
|
||||
this.SetGoToSocialReplyRequest(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsService); ok {
|
||||
this.SetActivityStreamsService(v)
|
||||
return nil
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue