Redirect from non-xxx host

This commit is contained in:
2023-08-06 15:36:50 +01:00
parent d44e4c1a94
commit 325e4be2ef

View File

@ -35,7 +35,7 @@ function NewStream({ ev, onFinish }: StreamEditorProps) {
onFinish={(ex) => { onFinish={(ex) => {
currentProvider.updateStreamInfo(ex); currentProvider.updateStreamInfo(ex);
if (!ev) { if (!ev) {
if (findTag(ex, "content-warning") && __XXX_HOST) { if (findTag(ex, "content-warning") && __XXX_HOST && __XXX === false) {
location.href = `${__XXX_HOST}/${eventLink(ex)}`; location.href = `${__XXX_HOST}/${eventLink(ex)}`;
} else { } else {
navigate(`/${eventLink(ex)}`, { navigate(`/${eventLink(ex)}`, {