summaryrefslogtreecommitdiff
path: root/internal/processing/status/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/status/status.go')
-rw-r--r--internal/processing/status/status.go10
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,
}
}