do not return translation if it matches the src text
This commit is contained in:
2
main.go
2
main.go
@@ -711,7 +711,7 @@ func getMatchChat(w http.ResponseWriter, r *http.Request) {
|
|||||||
goto sendNormalResp
|
goto sendNormalResp
|
||||||
}
|
}
|
||||||
|
|
||||||
if srcLang == lang.String() {
|
if srcLang == lang.String() || strings.TrimSpace(translated) == strings.TrimSpace(stat.Message) {
|
||||||
goto sendNormalResp
|
goto sendNormalResp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user