From 47c26818d6cd1545540e44d3475278a6a4296a77 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:29:32 +0000 Subject: [chore] add some more slice related utility functions + remove duplicated functions (#3149) --- internal/typeutils/internaltofrontend.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/typeutils/internaltofrontend.go') diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index c555e1d04..70230cd89 100644 --- a/internal/typeutils/internaltofrontend.go +++ b/internal/typeutils/internaltofrontend.go @@ -856,6 +856,7 @@ func (c *Converter) statusToAPIFilterResults( for _, mention := range s.Mentions { otherAccounts = append(otherAccounts, mention.TargetAccount) } + // If there are no other accounts, skip this check. if len(otherAccounts) > 0 { // Start by assuming that they're all invisible or muted. -- cgit v1.2.3