mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-11-29 18:39:06 +03:00
6cd033449f
Remote media is now dereferenced and attached properly to incoming federated statuses. Mentions are now dereferenced and attached properly to incoming federated statuses. Small fixes to status visibility. Allow URL params for filtering statuses: // ExcludeRepliesKey is for specifying whether to exclude replies in a list of returned statuses by an account. // PinnedKey is for specifying whether to include pinned statuses in a list of returned statuses by an account. // MaxIDKey is for specifying the maximum ID of the status to retrieve. // MediaOnlyKey is for specifying that only statuses with media should be returned in a list of returned statuses by an account. Add endpoint for fetching an account's statuses.
29 lines
927 B
Go
29 lines
927 B
Go
package gtsmodel
|
|
|
|
// // ToClientAPI wraps a message that travels from the processor into the client API
|
|
// type ToClientAPI struct {
|
|
// APObjectType ActivityStreamsObject
|
|
// APActivityType ActivityStreamsActivity
|
|
// Activity interface{}
|
|
// }
|
|
|
|
// FromClientAPI wraps a message that travels from client API into the processor
|
|
type FromClientAPI struct {
|
|
APObjectType ActivityStreamsObject
|
|
APActivityType ActivityStreamsActivity
|
|
GTSModel interface{}
|
|
}
|
|
|
|
// // ToFederator wraps a message that travels from the processor into the federator
|
|
// type ToFederator struct {
|
|
// APObjectType ActivityStreamsObject
|
|
// APActivityType ActivityStreamsActivity
|
|
// GTSModel interface{}
|
|
// }
|
|
|
|
// FromFederator wraps a message that travels from the federator into the processor
|
|
type FromFederator struct {
|
|
APObjectType ActivityStreamsObject
|
|
APActivityType ActivityStreamsActivity
|
|
GTSModel interface{}
|
|
}
|