Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix instance get config

Chocobozzz017fbe1855a9
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts
index cdcbcb528e..3997ce6db0 100644
--- a/client/src/app/core/server/server.service.ts
+++ b/client/src/app/core/server/server.service.ts
@@ -159,8 +159,11 @@ export class ServerService {
if (!this.configObservable) {
this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL)
.pipe(
- tap(this.saveConfigLocally),
- tap(() => this.configLoaded = true),
+ tap(config => this.saveConfigLocally(config)),
+ tap(config => {
+ this.config = config
+ this.configLoaded = true
+ }),
tap(() => {
if (this.configReset) {
this.configReloaded.next()