summaryrefslogtreecommitdiff
path: root/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context
diff options
context:
space:
mode:
authorLibravatar tobi <tobi.smethurst@protonmail.com>2025-07-09 16:50:25 +0200
committerLibravatar kim <gruf@noreply.codeberg.org>2025-07-09 16:50:25 +0200
commitdcfc9b7885e7ed4f7886a35ccb3e007c293d3521 (patch)
tree3bef2a25b9c8178bdfbece05a5165c94a5a7ae03 /vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context
parent[performance] use our own typed value context types for Value() key checking ... (diff)
downloadgotosocial-dcfc9b7885e7ed4f7886a35ccb3e007c293d3521.tar.xz
[feature] Use `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb` properties for web visibility of statuses (#4315)
This pull request implements two new properties on ActivityPub actors: `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb`. As documented, these properties allow actors to signal their preference for whether or not their posts should be hidden from unauthenticated web views (ie., web pages like the GtS frontend, web apps like the Mastodon frontend, web APIs like the Mastodon public timeline API, etc). This allows remote accounts to *opt in* to having their unlisted visibility posts shown in (for example) the replies section of the web view of a GtS thread. In future, we can also use these properties to determine whether we should show boosts of a remote actor's post on a GtS profile, and that sort of thing. In keeping with our stance around privacy by default, GtS assumes `true` for `hidesCcPublicFromUnauthedWeb` if the property is not set on a remote actor, ie., hide unlisted/unlocked posts by default. `hidesToPublicFromUnauthedWeb` is assumed to be `false` if the property is not set on a remote actor, ie., show public posts by default. ~~WIP as I still want to work on the documentation for this a bit.~~ New props are already in the namespace document: https://gotosocial.org/ns Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4315 Reviewed-by: kim <gruf@noreply.codeberg.org> Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context')
-rw-r--r--vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go4
-rw-r--r--vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go295
2 files changed, 204 insertions, 95 deletions
diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go
index cf30a8655..3be289683 100644
--- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go
+++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go
@@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
+ // DeserializeEmojiReactLitePub returns the deserialization method for the
+ // "LitePubEmojiReact" non-functional property in the vocabulary
+ // "LitePub"
+ DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go
index 590719bcd..3df50c4a1 100644
--- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go
+++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go
@@ -37,6 +37,7 @@ type ActivityStreamsContextPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
+ litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@@ -256,6 +257,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m
tootEmojiMember: v,
}
return this, nil
+ } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
+ this := &ActivityStreamsContextPropertyIterator{
+ alias: alias,
+ litepubEmojiReactMember: v,
+ }
+ return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsContextPropertyIterator{
activitystreamsEventMember: v,
@@ -1024,6 +1031,13 @@ func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL {
return this.iri
}
+// GetLitePubEmojiReact returns the value of this property. When
+// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
+// arbitrary value.
+func (this ActivityStreamsContextPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
+ return this.litepubEmojiReactMember
+}
+
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@@ -1122,6 +1136,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
+ if this.IsLitePubEmojiReact() {
+ return this.GetLitePubEmojiReact()
+ }
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@@ -1295,6 +1312,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
+ this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@@ -1827,6 +1845,13 @@ func (this ActivityStreamsContextPropertyIterator) IsIRI() bool {
return this.iri != nil
}
+// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
+// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
+// access and set this property.
+func (this ActivityStreamsContextPropertyIterator) IsLitePubEmojiReact() bool {
+ return this.litepubEmojiReactMember != nil
+}
+
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@@ -1906,6 +1931,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
+ } else if this.IsLitePubEmojiReact() {
+ child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@@ -2087,150 +2114,153 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
- if this.IsActivityStreamsEvent() {
+ if this.IsLitePubEmojiReact() {
return 23
}
- if this.IsActivityStreamsFlag() {
+ if this.IsActivityStreamsEvent() {
return 24
}
- if this.IsActivityStreamsFollow() {
+ if this.IsActivityStreamsFlag() {
return 25
}
- if this.IsActivityStreamsGroup() {
+ if this.IsActivityStreamsFollow() {
return 26
}
- if this.IsTootHashtag() {
+ if this.IsActivityStreamsGroup() {
return 27
}
- if this.IsTootIdentityProof() {
+ if this.IsTootHashtag() {
return 28
}
- if this.IsActivityStreamsIgnore() {
+ if this.IsTootIdentityProof() {
return 29
}
- if this.IsActivityStreamsImage() {
+ if this.IsActivityStreamsIgnore() {
return 30
}
- if this.IsActivityStreamsIntransitiveActivity() {
+ if this.IsActivityStreamsImage() {
return 31
}
- if this.IsActivityStreamsInvite() {
+ if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
- if this.IsActivityStreamsJoin() {
+ if this.IsActivityStreamsInvite() {
return 33
}
- if this.IsActivityStreamsLeave() {
+ if this.IsActivityStreamsJoin() {
return 34
}
- if this.IsFunkwhaleLibrary() {
+ if this.IsActivityStreamsLeave() {
return 35
}
- if this.IsActivityStreamsLike() {
+ if this.IsFunkwhaleLibrary() {
return 36
}
- if this.IsGoToSocialLikeApproval() {
+ if this.IsActivityStreamsLike() {
return 37
}
- if this.IsGoToSocialLikeAuthorization() {
+ if this.IsGoToSocialLikeApproval() {
return 38
}
- if this.IsGoToSocialLikeRequest() {
+ if this.IsGoToSocialLikeAuthorization() {
return 39
}
- if this.IsActivityStreamsListen() {
+ if this.IsGoToSocialLikeRequest() {
return 40
}
- if this.IsActivityStreamsMention() {
+ if this.IsActivityStreamsListen() {
return 41
}
- if this.IsActivityStreamsMove() {
+ if this.IsActivityStreamsMention() {
return 42
}
- if this.IsActivityStreamsNote() {
+ if this.IsActivityStreamsMove() {
return 43
}
- if this.IsActivityStreamsOffer() {
+ if this.IsActivityStreamsNote() {
return 44
}
- if this.IsActivityStreamsOrderedCollection() {
+ if this.IsActivityStreamsOffer() {
return 45
}
- if this.IsActivityStreamsOrderedCollectionPage() {
+ if this.IsActivityStreamsOrderedCollection() {
return 46
}
- if this.IsActivityStreamsOrganization() {
+ if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
- if this.IsActivityStreamsPage() {
+ if this.IsActivityStreamsOrganization() {
return 48
}
- if this.IsActivityStreamsPerson() {
+ if this.IsActivityStreamsPage() {
return 49
}
- if this.IsActivityStreamsPlace() {
+ if this.IsActivityStreamsPerson() {
return 50
}
- if this.IsActivityStreamsProfile() {
+ if this.IsActivityStreamsPlace() {
return 51
}
- if this.IsSchemaPropertyValue() {
+ if this.IsActivityStreamsProfile() {
return 52
}
- if this.IsActivityStreamsQuestion() {
+ if this.IsSchemaPropertyValue() {
return 53
}
- if this.IsActivityStreamsRead() {
+ if this.IsActivityStreamsQuestion() {
return 54
}
- if this.IsActivityStreamsReject() {
+ if this.IsActivityStreamsRead() {
return 55
}
- if this.IsActivityStreamsRelationship() {
+ if this.IsActivityStreamsReject() {
return 56
}
- if this.IsActivityStreamsRemove() {
+ if this.IsActivityStreamsRelationship() {
return 57
}
- if this.IsGoToSocialReplyApproval() {
+ if this.IsActivityStreamsRemove() {
return 58
}
- if this.IsGoToSocialReplyAuthorization() {
+ if this.IsGoToSocialReplyApproval() {
return 59
}
- if this.IsGoToSocialReplyRequest() {
+ if this.IsGoToSocialReplyAuthorization() {
return 60
}
- if this.IsActivityStreamsService() {
+ if this.IsGoToSocialReplyRequest() {
return 61
}
- if this.IsActivityStreamsTentativeAccept() {
+ if this.IsActivityStreamsService() {
return 62
}
- if this.IsActivityStreamsTentativeReject() {
+ if this.IsActivityStreamsTentativeAccept() {
return 63
}
- if this.IsActivityStreamsTombstone() {
+ if this.IsActivityStreamsTentativeReject() {
return 64
}
- if this.IsFunkwhaleTrack() {
+ if this.IsActivityStreamsTombstone() {
return 65
}
- if this.IsActivityStreamsTravel() {
+ if this.IsFunkwhaleTrack() {
return 66
}
- if this.IsActivityStreamsUndo() {
+ if this.IsActivityStreamsTravel() {
return 67
}
- if this.IsActivityStreamsUpdate() {
+ if this.IsActivityStreamsUndo() {
return 68
}
- if this.IsActivityStreamsVideo() {
+ if this.IsActivityStreamsUpdate() {
return 69
}
- if this.IsActivityStreamsView() {
+ if this.IsActivityStreamsVideo() {
return 70
}
+ if this.IsActivityStreamsView() {
+ return 71
+ }
if this.IsIRI() {
return -2
}
@@ -2294,6 +2324,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
+ } else if this.IsLitePubEmojiReact() {
+ return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@@ -2898,6 +2930,13 @@ func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
+// SetLitePubEmojiReact sets the value of this property. Calling
+// IsLitePubEmojiReact afterwards returns true.
+func (this *ActivityStreamsContextPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
+ this.clear()
+ this.litepubEmojiReactMember = v
+}
+
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsContextPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@@ -3021,6 +3060,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error
this.SetTootEmoji(v)
return nil
}
+ if v, ok := t.(vocab.LitePubEmojiReact); ok {
+ this.SetLitePubEmojiReact(v)
+ return nil
+ }
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@@ -3243,6 +3286,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
+ this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@@ -3346,6 +3390,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
+ } else if this.IsLitePubEmojiReact() {
+ return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@@ -4279,6 +4325,17 @@ func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) {
})
}
+// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
+// property "context". Invalidates iterators that are traversing using Prev.
+func (this *ActivityStreamsContextProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
+ this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
+ alias: this.alias,
+ litepubEmojiReactMember: v,
+ myIdx: this.Len(),
+ parent: this,
+ })
+}
+
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "context". Invalidates iterators that are traversing using
// Prev.
@@ -5526,6 +5583,23 @@ func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) {
}
}
+// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
+// property "context". Existing elements at that index and higher are shifted
+// back once. Invalidates all iterators.
+func (this *ActivityStreamsContextProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
+ this.properties = append(this.properties, nil)
+ copy(this.properties[idx+1:], this.properties[idx:])
+ this.properties[idx] = &ActivityStreamsContextPropertyIterator{
+ alias: this.alias,
+ litepubEmojiReactMember: v,
+ myIdx: idx,
+ parent: this,
+ }
+ for i := idx; i < this.Len(); i++ {
+ (this.properties)[i].myIdx = i
+ }
+}
+
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "context". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@@ -5748,194 +5822,198 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
+ lhs := this.properties[i].GetLitePubEmojiReact()
+ rhs := this.properties[j].GetLitePubEmojiReact()
+ return lhs.LessThan(rhs)
+ } else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
- } else if idx1 == 24 {
+ } else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
- } else if idx1 == 25 {
+ } else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
- } else if idx1 == 26 {
+ } else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
- } else if idx1 == 27 {
+ } else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
- } else if idx1 == 28 {
+ } else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
- } else if idx1 == 29 {
+ } else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
- } else if idx1 == 30 {
+ } else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
- } else if idx1 == 31 {
+ } else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
- } else if idx1 == 32 {
+ } else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
- } else if idx1 == 33 {
+ } else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
- } else if idx1 == 34 {
+ } else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
- } else if idx1 == 35 {
+ } else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
- } else if idx1 == 36 {
+ } else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
- } else if idx1 == 37 {
+ } else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
- } else if idx1 == 38 {
+ } else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
- } else if idx1 == 39 {
+ } else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
- } else if idx1 == 40 {
+ } else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
- } else if idx1 == 41 {
+ } else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
- } else if idx1 == 42 {
+ } else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
- } else if idx1 == 43 {
+ } else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
- } else if idx1 == 44 {
+ } else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
- } else if idx1 == 45 {
+ } else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
- } else if idx1 == 46 {
+ } else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
- } else if idx1 == 47 {
+ } else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
- } else if idx1 == 48 {
+ } else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
- } else if idx1 == 49 {
+ } else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
- } else if idx1 == 50 {
+ } else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
- } else if idx1 == 51 {
+ } else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
- } else if idx1 == 52 {
+ } else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
- } else if idx1 == 53 {
+ } else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
- } else if idx1 == 54 {
+ } else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
- } else if idx1 == 55 {
+ } else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
- } else if idx1 == 56 {
+ } else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
- } else if idx1 == 57 {
+ } else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
- } else if idx1 == 58 {
+ } else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
- } else if idx1 == 59 {
+ } else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
- } else if idx1 == 60 {
+ } else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
- } else if idx1 == 61 {
+ } else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
- } else if idx1 == 62 {
+ } else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
- } else if idx1 == 63 {
+ } else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
- } else if idx1 == 64 {
+ } else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
- } else if idx1 == 65 {
+ } else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
- } else if idx1 == 66 {
+ } else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
- } else if idx1 == 67 {
+ } else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
- } else if idx1 == 68 {
+ } else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
- } else if idx1 == 69 {
+ } else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
- } else if idx1 == 70 {
+ } else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@@ -6932,6 +7010,20 @@ func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) {
}
}
+// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
+// the property "context". Invalidates all iterators.
+func (this *ActivityStreamsContextProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
+ this.properties = append([]*ActivityStreamsContextPropertyIterator{{
+ alias: this.alias,
+ litepubEmojiReactMember: v,
+ myIdx: 0,
+ parent: this,
+ }}, this.properties...)
+ for i := 1; i < this.Len(); i++ {
+ (this.properties)[i].myIdx = i
+ }
+}
+
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "context". Invalidates all iterators.
func (this *ActivityStreamsContextProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@@ -7923,6 +8015,19 @@ func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) {
}
}
+// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
+// the property "context". Panics if the index is out of bounds. Invalidates
+// all iterators.
+func (this *ActivityStreamsContextProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
+ (this.properties)[idx].parent = nil
+ (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
+ alias: this.alias,
+ litepubEmojiReactMember: v,
+ myIdx: idx,
+ parent: this,
+ }
+}
+
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "context". Panics if the index is out of bounds.
// Invalidates all iterators.