|
|
|
@@ -6,7 +6,6 @@ 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" |
|
|
|
@@ -40,9 +39,7 @@ func NewContext() { |
|
|
|
|
|
|
|
// NotifyUploadAttachment notifies attachment upload message to notifiers |
|
|
|
func NotifyOtherTask(doer *models.User, repo *models.Repository, id string, name string, optype models.ActionType) { |
|
|
|
log.Info("send attachment to db.") |
|
|
|
for _, notifier := range notifiers { |
|
|
|
log.Info("send attachment to notifiers.") |
|
|
|
notifier.NotifyOtherTask(doer, repo, id, name, optype) |
|
|
|
} |
|
|
|
} |
|
|
|
|