[bugfix] Fix nil ptr dereffing instance acct outbox (#4267)

Well well well it was something silly, no surprise there!

Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4266

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4267
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
tobi 2025-06-13 14:08:25 +02:00 committed by tobi
commit 933a9091eb

View file

@ -83,8 +83,8 @@ func (p *Processor) OutboxGet(
switch {
case *receivingAcct.Settings.HideCollections ||
receivingAcct.IsInstance():
case receivingAcct.IsInstance() ||
*receivingAcct.Settings.HideCollections:
// If account that hides collections, or instance
// account (ie., can't post / have relationships),
// just return barest stub of collection.