mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] add support for polls + receiving federated status edits (#2330)
This commit is contained in:
@ -261,8 +261,10 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
|
||||
// Attached poll information (the statusable will actually
|
||||
// be a Pollable, as a Question is a subset of our Status).
|
||||
if pollable, ok := ap.ToPollable(statusable); ok {
|
||||
// TODO: handle decoding poll data
|
||||
_ = pollable
|
||||
status.Poll, err = ap.ExtractPoll(pollable)
|
||||
if err != nil {
|
||||
l.Warnf("error(s) extracting poll: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// status.Hashtags
|
||||
|
Reference in New Issue
Block a user