Just use hostname of join lemmy site in footer
To maintain consistency whether logged in or not.
This commit is contained in:
parent
eae7631d66
commit
5b41ce7d7b
1 changed files with 1 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
||||||
import { myAuth } from "@utils/app";
|
|
||||||
import { Component } from "inferno";
|
import { Component } from "inferno";
|
||||||
import { NavLink } from "inferno-router";
|
import { NavLink } from "inferno-router";
|
||||||
import { GetSiteResponse } from "lemmy-js-client";
|
import { GetSiteResponse } from "lemmy-js-client";
|
||||||
|
@ -59,9 +58,7 @@ export class Footer extends Component<FooterProps, any> {
|
||||||
</li>
|
</li>
|
||||||
<li className="nav-item">
|
<li className="nav-item">
|
||||||
<a className="nav-link" href={joinLemmyUrl}>
|
<a className="nav-link" href={joinLemmyUrl}>
|
||||||
{myAuth()
|
{new URL(joinLemmyUrl).hostname}
|
||||||
? new URL(joinLemmyUrl).hostname
|
|
||||||
: I18NextService.i18n.t("join_lemmy")}
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue