mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 08:54:01 +00:00
Removing community and user favicon setting.
This commit is contained in:
parent
ded7650a60
commit
9c3776d034
3 changed files with 7 additions and 9 deletions
6
ui/src/components/community.tsx
vendored
6
ui/src/components/community.tsx
vendored
|
@ -190,11 +190,7 @@ export class Community extends Component<any, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get favIcon(): string {
|
get favIcon(): string {
|
||||||
return this.state.community.icon
|
return this.state.site.icon ? this.state.site.icon : favIconUrl;
|
||||||
? this.state.community.icon
|
|
||||||
: this.state.site.icon
|
|
||||||
? this.state.site.icon
|
|
||||||
: favIconUrl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
6
ui/src/components/post.tsx
vendored
6
ui/src/components/post.tsx
vendored
|
@ -92,6 +92,8 @@ export class Post extends Component<any, PostState> {
|
||||||
enable_downvotes: undefined,
|
enable_downvotes: undefined,
|
||||||
open_registration: undefined,
|
open_registration: undefined,
|
||||||
enable_nsfw: undefined,
|
enable_nsfw: undefined,
|
||||||
|
icon: undefined,
|
||||||
|
banner: undefined,
|
||||||
},
|
},
|
||||||
online: null,
|
online: null,
|
||||||
version: null,
|
version: null,
|
||||||
|
@ -191,7 +193,9 @@ export class Post extends Component<any, PostState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get favIcon(): string {
|
get favIcon(): string {
|
||||||
return this.state.post ? this.state.post.community_icon : favIconUrl;
|
return this.state.siteRes.site.icon
|
||||||
|
? this.state.siteRes.site.icon
|
||||||
|
: favIconUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
4
ui/src/components/user.tsx
vendored
4
ui/src/components/user.tsx
vendored
|
@ -238,9 +238,7 @@ export class User extends Component<any, UserState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get favIcon(): string {
|
get favIcon(): string {
|
||||||
return this.state.user.avatar
|
return this.state.siteRes.site.icon
|
||||||
? this.state.user.avatar
|
|
||||||
: this.state.siteRes.site.icon
|
|
||||||
? this.state.siteRes.site.icon
|
? this.state.siteRes.site.icon
|
||||||
: favIconUrl;
|
: favIconUrl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue