From cfe35fdc73d916853b731462bb4ecf3fecef68a5 Mon Sep 17 00:00:00 2001 From: tqkoh Date: Thu, 16 Nov 2023 23:39:55 +0900 Subject: [PATCH] =?UTF-8?q?separator=20=E3=82=92=20:::=20=E3=81=8B?= =?UTF-8?q?=E3=82=89=20\n=20=E3=81=AB=E5=A4=89=E3=81=88=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/model/traqMessage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/model/traqMessage.go b/server/model/traqMessage.go index 47d17c5..c94eeee 100644 --- a/server/model/traqMessage.go +++ b/server/model/traqMessage.go @@ -90,7 +90,7 @@ func FindMatchingWords(messageList MessageList) ([]*NotifyInfo, error) { matchedWordsList := make([]*MatchedWords, 0) err := db.Select(&matchedWordsList, ` SELECT - group_concat(words.word SEPARATOR ':::') AS contacted_words, + group_concat(words.word SEPARATOR '\n') AS contacted_words, words.trap_id AS trap_id, users.traq_uuid AS traq_uuid FROM words @@ -114,7 +114,7 @@ func FindMatchingWords(messageList MessageList) ([]*NotifyInfo, error) { for _, matchedWords := range matchedWordsList { notifyInfo := &NotifyInfo{ - Words: strings.Split(matchedWords.ContactedWords, ":::"), + Words: strings.Split(matchedWords.ContactedWords, "\n"), NotifyTargetTrapId: matchedWords.TrapID, NotifyTargetTraqUuid: matchedWords.TraqUUID, MessageId: messageItem.Id,