|
|
|
@@ -6,6 +6,7 @@ package notification |
|
|
|
|
|
|
|
import ( |
|
|
|
"code.gitea.io/gitea/models" |
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/notification/action" |
|
|
|
"code.gitea.io/gitea/modules/notification/base" |
|
|
|
"code.gitea.io/gitea/modules/notification/indexer" |
|
|
|
@@ -39,7 +40,9 @@ func NewContext() { |
|
|
|
|
|
|
|
// NotifyUploadAttachment notifies attachment upload message to notifiers |
|
|
|
func NotifyUploadAttachment(doer *models.User, repo *models.Repository, attachment *models.Attachment) { |
|
|
|
log.Info("send attachment to db.") |
|
|
|
for _, notifier := range notifiers { |
|
|
|
log.Info("send attachment to notifiers.") |
|
|
|
notifier.NotifyUploadAttachment(doer, repo, attachment) |
|
|
|
} |
|
|
|
} |
|
|
|
|