mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-02 13:53:18 -06:00
don't error on timelining hidden status
This commit is contained in:
parent
e86e663aa7
commit
88ebb1538e
1 changed files with 4 additions and 3 deletions
|
|
@ -384,8 +384,9 @@ func (s *Surface) timelineStatus(
|
|||
) (bool, error) {
|
||||
|
||||
// Ingest status into given timeline using provided function.
|
||||
if inserted, err := ingest(ctx, timelineID, status); err != nil {
|
||||
err = gtserror.Newf("error ingesting status %s: %w", status.ID, err)
|
||||
if inserted, err := ingest(ctx, timelineID, status); err != nil &&
|
||||
!errors.Is(err, statusfilter.ErrHideStatus) {
|
||||
err := gtserror.Newf("error ingesting status %s: %w", status.ID, err)
|
||||
return false, err
|
||||
} else if !inserted {
|
||||
// Nothing more to do.
|
||||
|
|
@ -401,7 +402,7 @@ func (s *Surface) timelineStatus(
|
|||
mutes,
|
||||
)
|
||||
if err != nil {
|
||||
err = gtserror.Newf("error converting status %s to frontend representation: %w", status.ID, err)
|
||||
err := gtserror.Newf("error converting status %s to frontend representation: %w", status.ID, err)
|
||||
return true, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue