We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e00c7d3 commit 27c83deCopy full SHA for 27c83de
routers/api/v1/repo/issue_comment_attachment.go
@@ -7,7 +7,6 @@ import (
7
"errors"
8
"net/http"
9
10
- "code.gitea.io/gitea/models/db"
11
issues_model "code.gitea.io/gitea/models/issues"
12
repo_model "code.gitea.io/gitea/models/repo"
13
user_model "code.gitea.io/gitea/models/user"
@@ -392,10 +391,6 @@ func getIssueCommentAttachmentSafeRead(ctx *context.APIContext, comment *issues_
392
391
if !attachmentBelongsToRepoOrComment(ctx, attachment, comment) {
393
return nil
394
}
395
- if attachment.Status != db.FileStatusNormal {
396
- ctx.APIErrorNotFound()
397
- return nil
398
- }
399
return attachment
400
401
0 commit comments