diff options
author | 2021-08-30 13:38:06 +0200 | |
---|---|---|
committer | 2021-08-30 13:38:06 +0200 | |
commit | 6adec1ae4d95489e4e11c3dfc3be15a634b3a60f (patch) | |
tree | 0f123565cdaafac55425eeb9171dd0ef988c6a63 /internal/processing/status/boost.go | |
parent | Merge branch 'struct_validation' of github.com:superseriousbusiness/gotosocia... (diff) | |
download | gotosocial-6adec1ae4d95489e4e11c3dfc3be15a634b3a60f.tar.xz |
more work on struct validation
Diffstat (limited to 'internal/processing/status/boost.go')
-rw-r--r-- | internal/processing/status/boost.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/processing/status/boost.go b/internal/processing/status/boost.go index 948d57a48..66118ce2f 100644 --- a/internal/processing/status/boost.go +++ b/internal/processing/status/boost.go @@ -44,10 +44,8 @@ func (p *processor) Boost(ctx context.Context, requestingAccount *gtsmodel.Accou if !visible { return nil, gtserror.NewErrorNotFound(errors.New("status is not visible")) } - if targetStatus.VisibilityAdvanced != nil { - if !targetStatus.VisibilityAdvanced.Boostable { - return nil, gtserror.NewErrorForbidden(errors.New("status is not boostable")) - } + if !targetStatus.VisibilityAdvanced.Boostable { + return nil, gtserror.NewErrorForbidden(errors.New("status is not boostable")) } // it's visible! it's boostable! so let's boost the FUCK out of it |