Moving markdown to corelibs (#16916)
* Moving markdown to corelibs * Fix golangci-lint problem * Renaming corelibs to pkg * Fixing golangci-lint * Renaming from pkg to shared * Fixing gofmt Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
23dd4a5946
Коммит
2417fb265d
@@ -59,7 +59,7 @@ issues:
|
|||||||
|
|
||||||
- linters:
|
- linters:
|
||||||
- misspell
|
- misspell
|
||||||
path: "utils/markdown/html_entities.go"
|
path: "shared/markdown/html_entities.go"
|
||||||
|
|
||||||
- linters:
|
- linters:
|
||||||
- unparam
|
- unparam
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import (
|
|||||||
|
|
||||||
"github.com/mattermost/mattermost-server/v5/model"
|
"github.com/mattermost/mattermost-server/v5/model"
|
||||||
"github.com/mattermost/mattermost-server/v5/shared/i18n"
|
"github.com/mattermost/mattermost-server/v5/shared/i18n"
|
||||||
|
"github.com/mattermost/mattermost-server/v5/shared/markdown"
|
||||||
"github.com/mattermost/mattermost-server/v5/shared/mlog"
|
"github.com/mattermost/mattermost-server/v5/shared/mlog"
|
||||||
"github.com/mattermost/mattermost-server/v5/store"
|
"github.com/mattermost/mattermost-server/v5/store"
|
||||||
"github.com/mattermost/mattermost-server/v5/utils/markdown"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *model.Channel, sender *model.User, parentPostList *model.PostList, setOnline bool) ([]string, error) {
|
func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *model.Channel, sender *model.User, parentPostList *model.PostList, setOnline bool) ([]string, error) {
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ import (
|
|||||||
|
|
||||||
"github.com/mattermost/mattermost-server/v5/model"
|
"github.com/mattermost/mattermost-server/v5/model"
|
||||||
"github.com/mattermost/mattermost-server/v5/services/cache"
|
"github.com/mattermost/mattermost-server/v5/services/cache"
|
||||||
|
"github.com/mattermost/mattermost-server/v5/shared/markdown"
|
||||||
"github.com/mattermost/mattermost-server/v5/shared/mlog"
|
"github.com/mattermost/mattermost-server/v5/shared/mlog"
|
||||||
"github.com/mattermost/mattermost-server/v5/utils/imgutils"
|
"github.com/mattermost/mattermost-server/v5/utils/imgutils"
|
||||||
"github.com/mattermost/mattermost-server/v5/utils/markdown"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type linkMetadataCache struct {
|
type linkMetadataCache struct {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"github.com/mattermost/mattermost-server/v5/utils/markdown"
|
"github.com/mattermost/mattermost-server/v5/shared/markdown"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user