mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 17:36:16 -06:00
further code to ignore statusfilter.ErrHideStatus type errors
This commit is contained in:
parent
88ebb1538e
commit
3756d64ac7
1 changed files with 8 additions and 4 deletions
|
|
@ -401,15 +401,19 @@ func (s *Surface) timelineStatus(
|
|||
filters,
|
||||
mutes,
|
||||
)
|
||||
if err != nil {
|
||||
if err != nil && !errors.Is(err, statusfilter.ErrHideStatus) {
|
||||
err := gtserror.Newf("error converting status %s to frontend representation: %w", status.ID, err)
|
||||
return true, err
|
||||
}
|
||||
|
||||
// The status was inserted so stream it to the user.
|
||||
s.Stream.Update(ctx, account, apiStatus, streamType)
|
||||
if apiStatus != nil {
|
||||
// The status was inserted so stream it to the user.
|
||||
s.Stream.Update(ctx, account, apiStatus, streamType)
|
||||
return true, nil
|
||||
}
|
||||
|
||||
return true, nil
|
||||
// Status was hidden.
|
||||
return false, nil
|
||||
}
|
||||
|
||||
// timelineAndNotifyStatusForTagFollowers inserts the status into the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue