diff options
author | 2024-03-12 15:34:08 +0100 | |
---|---|---|
committer | 2024-03-12 14:34:08 +0000 | |
commit | 1bcdf1da3bb10d564a6a56a89af5afa53e5cd78f (patch) | |
tree | 83716cea30d236c48e1655193c3adfc232e5bc75 /internal/messages/messages.go | |
parent | [chore] Update usage of OTEL libraries (#2725) (diff) | |
download | gotosocial-1bcdf1da3bb10d564a6a56a89af5afa53e5cd78f.tar.xz |
[feature] Process incoming `Move` activity (#2724)
* [feature] Process incoming account Move activity
* fix targetAcct typo
* put move origin account on fMsg
* shift more move functionality back to the worker fn
* simplify error logic
Diffstat (limited to 'internal/messages/messages.go')
-rw-r--r-- | internal/messages/messages.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/internal/messages/messages.go b/internal/messages/messages.go index 236aea722..32cb5fbba 100644 --- a/internal/messages/messages.go +++ b/internal/messages/messages.go @@ -34,10 +34,11 @@ type FromClientAPI struct { // FromFediAPI wraps a message that travels from the federating API into the processor. type FromFediAPI struct { - 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. + 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. + RequestingAccount *gtsmodel.Account // Remote account that posted this Activity to the inbox. + ReceivingAccount *gtsmodel.Account // Local account which owns the inbox that this Activity was posted to. } |