aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/modal/quick-settings-modal.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-16 11:00:35 +0200
committerChocobozzz <me@florianbigard.com>2020-06-16 11:26:46 +0200
commit5c20a45518c3afc40c9494cad4a78def92e5e288 (patch)
treed4f6894b37394f3a40e6c58d34012bc55c05f55e /client/src/app/modal/quick-settings-modal.component.ts
parent64e0f8cf12c804a7a2fa582fd954f686cea9a45b (diff)
downloadPeerTube-5c20a45518c3afc40c9494cad4a78def92e5e288.tar.gz
PeerTube-5c20a45518c3afc40c9494cad4a78def92e5e288.tar.zst
PeerTube-5c20a45518c3afc40c9494cad4a78def92e5e288.zip
Fix anonymous nsfw policy
Diffstat (limited to 'client/src/app/modal/quick-settings-modal.component.ts')
-rw-r--r--client/src/app/modal/quick-settings-modal.component.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/app/modal/quick-settings-modal.component.ts b/client/src/app/modal/quick-settings-modal.component.ts
index 41d6c9f47..155794d1b 100644
--- a/client/src/app/modal/quick-settings-modal.component.ts
+++ b/client/src/app/modal/quick-settings-modal.component.ts
@@ -32,9 +32,11 @@ export class QuickSettingsModalComponent extends FormReactive implements OnInit
32 32
33 ngOnInit () { 33 ngOnInit () {
34 this.user = this.userService.getAnonymousUser() 34 this.user = this.userService.getAnonymousUser()
35 this.localStorageService.watch().subscribe( 35 this.localStorageService.watch()
36 () => this.user = this.userService.getAnonymousUser() 36 .subscribe(
37 ) 37 () => this.user = this.userService.getAnonymousUser()
38 )
39
38 this.userInformationLoaded.next(true) 40 this.userInformationLoaded.next(true)
39 41
40 this.authService.loginChangedSource 42 this.authService.loginChangedSource