Merge branch 'streaming' of github.com:superseriousbusiness/gotosocial into streaming
This commit is contained in:
commit
72c8563f68
|
@ -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 {
|
func (p *processor) deleteStatusFromTimelines(status *gtsmodel.Status) error {
|
||||||
|
|
Loading…
Reference in New Issue