Redirect from non-xxx host
This commit is contained in:
@ -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)}`, {
|
||||||
|
Reference in New Issue
Block a user