summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorJustin Nuß <justin.nuss@hmmh.de>2014-07-24 15:19:59 +0200
committerJustin Nuß <justin.nuss@hmmh.de>2014-07-24 15:19:59 +0200
commitbfe5b86004791823b198be76084aa128d262b290 (patch)
tree95e7e6f9633793f20d43309412fe9c2e66b1527f /models/issue.go
parent43e5de7f830a098582b519706f9c5da6eecd2c3e (diff)
downloadgitea-bfe5b86004791823b198be76084aa128d262b290.tar.gz
gitea-bfe5b86004791823b198be76084aa128d262b290.zip
Add file upload for attachments
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/models/issue.go b/models/issue.go
index f16c384b6f..9422a7380d 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -1085,21 +1085,3 @@ func DeleteAttachmentsByComment(commentId int64, remove bool) (int, error) {
return DeleteAttachments(attachments, remove)
}
-
-// AssignAttachment assigns the given attachment to the specified comment
-func AssignAttachment(issueId, commentId, attachmentId int64) error {
- a, err := GetAttachmentById(attachmentId)
-
- if err != nil {
- return err
- }
-
- if a.IssueId != issueId {
- return ErrAttachmentNotLinked
- }
-
- a.CommentId = commentId
-
- _, err = x.Id(a.Id).Update(a)
- return err
-}