Merge branch 'streaming' of github.com:superseriousbusiness/gotosocial into streaming

This commit is contained in:
tsmethurst 2021-06-19 10:47:43 +02:00
commit 72c8563f68
1 changed files with 9 additions and 0 deletions

View File

@ -389,6 +389,15 @@ func (p *processor) timelineStatusForAccount(status *gtsmodel.Status, accountID
}
}
}
mastoStatus, err := p.tc.StatusToMasto(status, timelineAccount)
if err != nil {
errors <- fmt.Errorf("timelineStatusForAccount: error converting status %s to frontend representation: %s", status.ID, err)
} else {
if err := p.streamingProcessor.StreamStatusToAccount(mastoStatus, timelineAccount); err != nil {
errors <- fmt.Errorf("timelineStatusForAccount: error streaming status %s: %s", status.ID, err)
}
}
}
func (p *processor) deleteStatusFromTimelines(status *gtsmodel.Status) error {