* Add /help slash command

* Fix copyright year

* go fmt

* Add help command test at api4

* Fix jasonblais's issue

* Update test code

* Fix unit test issue - keep config unchanged
Этот коммит содержится в:
Jaehyun, Park
2017-06-29 23:38:56 +09:00
коммит произвёл Harrison Healey
родитель 94e734c1bd
Коммит 50b662040c
5 изменённых файлов: 123 добавлений и 1 удалений

Просмотреть файл

@@ -203,7 +203,11 @@ export default class CreateComment extends React.Component {
(data) => {
this.setState({submitting: false});
if (data.goto_location && data.goto_location.length > 0) {
browserHistory.push(data.goto_location);
if (data.goto_location.startsWith('/') || data.goto_location.includes(window.location.hostname)) {
browserHistory.push(data.goto_location);
} else {
window.open(data.goto_location);
}
}
},
(err) => {