mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 08:26:15 -06:00
add more code comments, move media description check back to media process in status create
This commit is contained in:
parent
f0f3bc52dc
commit
b212cd0169
5 changed files with 91 additions and 16 deletions
|
|
@ -31,7 +31,8 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
// GetOwnStatus ...
|
||||
// GetOwnStatus fetches the given status with ID,
|
||||
// and ensures that it belongs to given requester.
|
||||
func (p *Processor) GetOwnStatus(
|
||||
ctx context.Context,
|
||||
requester *gtsmodel.Account,
|
||||
|
|
@ -46,14 +47,6 @@ func (p *Processor) GetOwnStatus(
|
|||
return nil, gtserror.NewErrorInternalError(err)
|
||||
}
|
||||
|
||||
if target == nil {
|
||||
const text = "target status not found"
|
||||
return nil, gtserror.NewErrorNotFound(
|
||||
errors.New(text),
|
||||
text,
|
||||
)
|
||||
}
|
||||
|
||||
switch {
|
||||
case target == nil:
|
||||
const text = "target status not found"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue