mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] support endless polls, and misskey's' method of inferring expiry in closed polls (#2349)
This commit is contained in:
@@ -708,8 +708,10 @@ func (c *Converter) addPollToAS(ctx context.Context, poll *gtsmodel.Poll, dst ap
|
||||
optionsProp.AppendActivityStreamsNote(note)
|
||||
}
|
||||
|
||||
// Set poll endTime property.
|
||||
ap.SetEndTime(dst, poll.ExpiresAt)
|
||||
if !poll.ExpiresAt.IsZero() {
|
||||
// Set poll endTime property.
|
||||
ap.SetEndTime(dst, poll.ExpiresAt)
|
||||
}
|
||||
|
||||
if !poll.ClosedAt.IsZero() {
|
||||
// Poll is closed, set closed property.
|
||||
|
Reference in New Issue
Block a user