diff options
author | 2023-11-08 14:32:17 +0000 | |
---|---|---|
committer | 2023-11-08 14:32:17 +0000 | |
commit | e9e5dc5a40926e5320cb131b035c46b1e1b0bd59 (patch) | |
tree | 52edc9fa5742f28e1e5223f51cda628ec1c35a24 /internal/processing/status/status.go | |
parent | [chore]: Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#2338) (diff) | |
download | gotosocial-e9e5dc5a40926e5320cb131b035c46b1e1b0bd59.tar.xz |
[feature] add support for polls + receiving federated status edits (#2330)
Diffstat (limited to 'internal/processing/status/status.go')
-rw-r--r-- | internal/processing/status/status.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/processing/status/status.go b/internal/processing/status/status.go index b45b1651e..eaeb12b39 100644 --- a/internal/processing/status/status.go +++ b/internal/processing/status/status.go @@ -21,6 +21,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/federation" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/processing/common" + "github.com/superseriousbusiness/gotosocial/internal/processing/polls" "github.com/superseriousbusiness/gotosocial/internal/state" "github.com/superseriousbusiness/gotosocial/internal/text" "github.com/superseriousbusiness/gotosocial/internal/typeutils" @@ -28,7 +29,7 @@ import ( ) type Processor struct { - // common processor logic + // embedded common logic c *common.Processor state *state.State @@ -37,12 +38,16 @@ type Processor struct { filter *visibility.Filter formatter *text.Formatter parseMention gtsmodel.ParseMentionFunc + + // other processors + polls *polls.Processor } // New returns a new status processor. func New( - common *common.Processor, state *state.State, + common *common.Processor, + polls *polls.Processor, federator *federation.Federator, converter *typeutils.Converter, filter *visibility.Filter, @@ -56,5 +61,6 @@ func New( filter: filter, formatter: text.NewFormatter(state.DB), parseMention: parseMention, + polls: polls, } } |