Fix @channel, @here and @everyone Slack import. (#3946)
Does this by adding special case regexes to the @mention importing code in the Slack importer for these three special mention types. Fixes PLT-4053
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
856ae2901b
Коммит
af0df81a97
@@ -242,6 +242,11 @@ func SlackConvertUserMentions(users []SlackUser, posts map[string][]SlackPost) m
|
||||
regexes["@"+user.Username] = r
|
||||
}
|
||||
|
||||
// Special cases.
|
||||
regexes["@here"], _ = regexp.Compile(`<!here\|@here>`)
|
||||
regexes["@channel"], _ = regexp.Compile("<!channel>")
|
||||
regexes["@all"], _ = regexp.Compile("<!everyone>")
|
||||
|
||||
for channelName, channelPosts := range posts {
|
||||
for postIdx, post := range channelPosts {
|
||||
for mention, r := range regexes {
|
||||
|
||||
Ссылка в новой задаче
Block a user