summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-03-11 09:05:23 +0100
committerLibravatar tobi <tobi.smethurst@protonmail.com>2025-03-11 09:45:28 +0100
commit8beeeb93090cd23ef1b41bf697dbd32cae7138b2 (patch)
tree080ea50cdeba9e6286088ac29368942d0c9b7b9f /internal
parentbumps our uptrace/bun dependencies to v1.2.11 (#3895) (diff)
downloadgotosocial-8beeeb93090cd23ef1b41bf697dbd32cae7138b2.tar.xz
[bugfix] Fix panic when opening instance actor in web view (#3898)
Diffstat (limited to 'internal')
-rw-r--r--internal/db/bundb/account.go6
1 files changed, 6 insertions, 0 deletions
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 {