mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:42:25 -05:00
[bugfix] update fedi api to support multiple separate votes in same multiple choice poll (#3809)
This commit is contained in:
parent
2f5629143d
commit
a03a35a5d6
6 changed files with 142 additions and 44 deletions
|
|
@ -58,6 +58,9 @@ type Poll interface {
|
|||
// PutPollVote puts the given PollVote in the database.
|
||||
PutPollVote(ctx context.Context, vote *gtsmodel.PollVote) error
|
||||
|
||||
// UpdatePollVote updates the given poll vote in the database, using only given columns (else, all).
|
||||
UpdatePollVote(ctx context.Context, vote *gtsmodel.PollVote, cols ...string) error
|
||||
|
||||
// DeletePollVoteBy deletes the PollVote in Poll with ID, by account ID, from the database.
|
||||
DeletePollVoteBy(ctx context.Context, pollID string, accountID string) error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue