Skip to content

Commit 27c83de

Browse files
committed
improvements
1 parent e00c7d3 commit 27c83de

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

routers/api/v1/repo/issue_comment_attachment.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"errors"
88
"net/http"
99

10-
"code.gitea.io/gitea/models/db"
1110
issues_model "code.gitea.io/gitea/models/issues"
1211
repo_model "code.gitea.io/gitea/models/repo"
1312
user_model "code.gitea.io/gitea/models/user"
@@ -392,10 +391,6 @@ func getIssueCommentAttachmentSafeRead(ctx *context.APIContext, comment *issues_
392391
if !attachmentBelongsToRepoOrComment(ctx, attachment, comment) {
393392
return nil
394393
}
395-
if attachment.Status != db.FileStatusNormal {
396-
ctx.APIErrorNotFound()
397-
return nil
398-
}
399394
return attachment
400395
}
401396

0 commit comments

Comments
 (0)