From bf05c32ae178cdd4b4695858790f711924cfc0ca Mon Sep 17 00:00:00 2001 From: tobi Date: Tue, 11 Mar 2025 08:39:59 +0100 Subject: [PATCH] [bugfix] Fix panic when opening instance actor in web view --- internal/db/bundb/account.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/db/bundb/account.go b/internal/db/bundb/account.go index c5f9148a9..f905101e4 100644 --- a/internal/db/bundb/account.go +++ b/internal/db/bundb/account.go @@ -1021,6 +1021,12 @@ func (a *accountDB) GetAccountWebStatuses( limit int, maxID string, ) ([]*gtsmodel.Status, error) { + if account.Username == config.GetHost() { + // Instance account + // doesn't post statuses. + return nil, nil + } + // Check for an easy case: account exposes no statuses via the web. webVisibility := account.Settings.WebVisibility if webVisibility == gtsmodel.VisibilityNone {