Skip to content

Commit

Permalink
Feat: Use lemmyverse.link for linking outside (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage authored Nov 6, 2023
1 parent b2572f6 commit 93a0d26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,16 @@ <h1>{{title}}</h1>
</div>
<strong>
<ng-container *ngIf="maintainer === '@[email protected]' else splitMaintainerAuthor">
<transloco [key]="'app.footer.created_and_maintained_by'" [params]="{authorUrl: 'https://lemmings.world/u/rikudou', author: '@[email protected]'}" />
<transloco [key]="'app.footer.created_and_maintained_by'" [params]="{
authorUrl: 'https://lemmyverse.link/u/[email protected]',
author: '@[email protected]'
}" />
</ng-container>
<ng-template #splitMaintainerAuthor>
<transloco [key]="'app.footer.created_by'" [params]="{authorUrl: 'https://lemmings.world/u/rikudou', author: '@[email protected]'}" />
<transloco [key]="'app.footer.created_by'" [params]="{
authorUrl: 'https://lemmyverse.link/u/[email protected]',
author: '@[email protected]'
}" />
<transloco [key]="'app.footer.maintained_by'" [params]="{maintainerLink: maintainerLink, maintainer: maintainer}" />
</ng-template>
<transloco [key]="'app.footer.source_link'" [params]="{sourceCodeLink: sourceCodeLink}" />
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class AppComponent implements OnInit {
const username = urlized.username;
const host = urlized.host;

this.maintainerLink = `https://${host}/u/${username}`;
this.maintainerLink = `https://lemmyverse.link/u/${username}@${host}`;
}

public async openSwitchAccountModal(modal: TemplateRef<any>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(<a target="_blank" href="https://{{instance}}/@[email protected]">@[email protected]</a>)
</ng-container>
<ng-container *ngIf="software !== 'mastodon' && software !== 'lemmy'">
(<a target="_blank" href="https://lemmy.dbzer0.com/u/db0">@[email protected]</a>)
(<a target="_blank" href="https://lemmyverse.link/u/db0@lemmy.dbzer0.com">@[email protected]</a>)
</ng-container>
to reset it for you.
</p>
Expand Down

0 comments on commit 93a0d26

Please sign in to comment.