mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 20:02:24 -05:00
[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:
parent
e87681d433
commit
933a9091eb
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue