Redirect from non-xxx host

This commit is contained in:
Kieran 2023-08-06 15:36:50 +01:00
parent d44e4c1a94
commit 325e4be2ef
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

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