summaryrefslogtreecommitdiff
path: root/internal/messages/messages.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-05-09 12:16:10 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-09 11:16:10 +0100
commit0e29f1f5bb68a48d9b837d7f4e0a16370734955b (patch)
treef08d203ec8ca8aeea728e5251b1dc3956524b4f4 /internal/messages/messages.go
parent[chore/performance] Make sender multiplier configurable (#1750) (diff)
downloadgotosocial-0e29f1f5bb68a48d9b837d7f4e0a16370734955b.tar.xz
[feature] Enable federation in/out of profile PropertyValue fields (#1722)
Co-authored-by: kim <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Diffstat (limited to 'internal/messages/messages.go')
-rw-r--r--internal/messages/messages.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/messages/messages.go b/internal/messages/messages.go
index 4b80088c2..7f9b3f37c 100644
--- a/internal/messages/messages.go
+++ b/internal/messages/messages.go
@@ -34,9 +34,10 @@ type FromClientAPI struct {
// FromFederator wraps a message that travels from the federator into the processor.
type FromFederator struct {
- APObjectType string // what is the object type of this message? eg., Note, Profile etc.
- APActivityType string // what is the activity type of this message? eg., Create, Follow etc.
- APIri *url.URL // what is the IRI ID of this activity?
- GTSModel interface{} // representation of this object if it's already been converted into our internal gts model
- ReceivingAccount *gtsmodel.Account // which account owns the inbox that this activity was posted to?
+ APObjectType string
+ APActivityType string
+ APIri *url.URL
+ APObjectModel interface{} // Optional AP model of the Object of the Activity. Should be Accountable or Statusable.
+ GTSModel interface{} // Optional GTS model of the Activity or Object.
+ ReceivingAccount *gtsmodel.Account // Local account which owns the inbox that this Activity was posted to.
}