"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "services/comments/comments.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

comments.go  (gitea-1.13.1):comments.go  (gitea-1.13.2)
skipping to change at line 25 skipping to change at line 25
Type: models.CommentTypeComment, Type: models.CommentTypeComment,
Doer: doer, Doer: doer,
Repo: repo, Repo: repo,
Issue: issue, Issue: issue,
Content: content, Content: content,
Attachments: attachments, Attachments: attachments,
}) })
if err != nil { if err != nil {
return nil, err return nil, err
} }
mentions, err := issue.FindAndUpdateIssueMentions(models.DefaultDBContext
notification.NotifyCreateIssueComment(doer, repo, issue, comment) (), doer, comment.Content)
if err != nil {
return nil, err
}
notification.NotifyCreateIssueComment(doer, repo, issue, comment, mention
s)
return comment, nil return comment, nil
} }
// UpdateComment updates information of comment. // UpdateComment updates information of comment.
func UpdateComment(c *models.Comment, doer *models.User, oldContent string) erro r { func UpdateComment(c *models.Comment, doer *models.User, oldContent string) erro r {
if err := models.UpdateComment(c, doer); err != nil { if err := models.UpdateComment(c, doer); err != nil {
return err return err
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)