mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 15:57:29 -06:00
Merge branch 'streaming' of github.com:superseriousbusiness/gotosocial into streaming
This commit is contained in:
commit
72c8563f68
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue