summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/messages.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-21 15:48:26 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-21 15:48:26 +0200
commitd839f27c306eedebdc7cc0311f35b8856cc2bb24 (patch)
tree7a11a3a641f902991d26771c4d3f8e836a2bce7e /internal/gtsmodel/messages.go
parentupdate progress (diff)
downloadgotosocial-d839f27c306eedebdc7cc0311f35b8856cc2bb24.tar.xz
Follows and relationships (#27)
* Follows -- create and undo, both remote and local * Statuses -- federate new posts, including media, attachments, CWs and image descriptions.
Diffstat (limited to 'internal/gtsmodel/messages.go')
-rw-r--r--internal/gtsmodel/messages.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/gtsmodel/messages.go b/internal/gtsmodel/messages.go
index 43f30634a..910c74898 100644
--- a/internal/gtsmodel/messages.go
+++ b/internal/gtsmodel/messages.go
@@ -9,9 +9,11 @@ package gtsmodel
// FromClientAPI wraps a message that travels from client API into the processor
type FromClientAPI struct {
- APObjectType ActivityStreamsObject
- APActivityType ActivityStreamsActivity
+ APObjectType string
+ APActivityType string
GTSModel interface{}
+ OriginAccount *Account
+ TargetAccount *Account
}
// // ToFederator wraps a message that travels from the processor into the federator
@@ -23,7 +25,8 @@ type FromClientAPI struct {
// FromFederator wraps a message that travels from the federator into the processor
type FromFederator struct {
- APObjectType ActivityStreamsObject
- APActivityType ActivityStreamsActivity
- GTSModel interface{}
+ APObjectType string
+ APActivityType string
+ GTSModel interface{}
+ ReceivingAccount *Account
}