mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Remove /u/
and /c/
schemes from UI
This commit is contained in:
parent
52b221e3c9
commit
75fe38ab08
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,3 +16,5 @@ ui/src/translations
|
|||||||
|
|
||||||
# ide config
|
# ide config
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
target
|
||||||
|
2
ui/src/components/community.tsx
vendored
2
ui/src/components/community.tsx
vendored
@ -177,7 +177,7 @@ export class Community extends Component<any, State> {
|
|||||||
|
|
||||||
get documentTitle(): string {
|
get documentTitle(): string {
|
||||||
if (this.state.community.name) {
|
if (this.state.community.name) {
|
||||||
return `/c/${this.state.community.name} - ${this.state.site.name}`;
|
return `!${this.state.community.name} - ${this.state.site.name}`;
|
||||||
} else {
|
} else {
|
||||||
return 'Lemmy';
|
return 'Lemmy';
|
||||||
}
|
}
|
||||||
|
2
ui/src/components/inbox.tsx
vendored
2
ui/src/components/inbox.tsx
vendored
@ -112,7 +112,7 @@ export class Inbox extends Component<any, InboxState> {
|
|||||||
|
|
||||||
get documentTitle(): string {
|
get documentTitle(): string {
|
||||||
if (this.state.site.name) {
|
if (this.state.site.name) {
|
||||||
return `/u/${UserService.Instance.user.name} ${i18n.t('inbox')} - ${
|
return `@${UserService.Instance.user.name} ${i18n.t('inbox')} - ${
|
||||||
this.state.site.name
|
this.state.site.name
|
||||||
}`;
|
}`;
|
||||||
} else {
|
} else {
|
||||||
|
4
ui/src/components/user.tsx
vendored
4
ui/src/components/user.tsx
vendored
@ -213,7 +213,7 @@ export class User extends Component<any, UserState> {
|
|||||||
|
|
||||||
get documentTitle(): string {
|
get documentTitle(): string {
|
||||||
if (this.state.siteRes.site.name) {
|
if (this.state.siteRes.site.name) {
|
||||||
return `/u/${this.state.username} - ${this.state.siteRes.site.name}`;
|
return `@${this.state.username} - ${this.state.siteRes.site.name}`;
|
||||||
} else {
|
} else {
|
||||||
return 'Lemmy';
|
return 'Lemmy';
|
||||||
}
|
}
|
||||||
@ -234,7 +234,7 @@ export class User extends Component<any, UserState> {
|
|||||||
class="rounded-circle mr-2"
|
class="rounded-circle mr-2"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<span>/u/{this.state.username}</span>
|
<span>@{this.state.username}</span>
|
||||||
</h5>
|
</h5>
|
||||||
{this.state.loading ? (
|
{this.state.loading ? (
|
||||||
<h5>
|
<h5>
|
||||||
|
Loading…
Reference in New Issue
Block a user