summaryrefslogtreecommitdiff
path: root/internal/typeutils
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-12-04 09:35:48 +0000
committerLibravatar GitHub <noreply@github.com>2024-12-04 10:35:48 +0100
commit3e18d97a6eb2a823af952392f1dd344abbe0addf (patch)
tree6130e8461927831097967c9e6d47053a0ba4eb40 /internal/typeutils
parent[chore] bumps modernc/sqlite version to v1.34.2 on our custom fork (#3599) (diff)
downloadgotosocial-3e18d97a6eb2a823af952392f1dd344abbe0addf.tar.xz
[feature] unending polls (#3592)
* adds support for unending polls to be created locally * remove unused argument
Diffstat (limited to 'internal/typeutils')
-rw-r--r--internal/typeutils/internaltoas.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go
index a81e5d2c0..d46ce64e2 100644
--- a/internal/typeutils/internaltoas.go
+++ b/internal/typeutils/internaltoas.go
@@ -444,7 +444,7 @@ func (c *Converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (ap.Stat
poll := streams.NewActivityStreamsQuestion()
// Add required status poll data to AS Question.
- if err := c.addPollToAS(ctx, s.Poll, poll); err != nil {
+ if err := c.addPollToAS(s.Poll, poll); err != nil {
return nil, gtserror.Newf("error converting poll: %w", err)
}
@@ -708,7 +708,7 @@ func (c *Converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (ap.Stat
return status, nil
}
-func (c *Converter) addPollToAS(ctx context.Context, poll *gtsmodel.Poll, dst ap.Pollable) error {
+func (c *Converter) addPollToAS(poll *gtsmodel.Poll, dst ap.Pollable) error {
var optionsProp interface {
// the minimum interface for appending AS Notes
// to an AS type options property of some kind.