From ab9659c2e256e421922756b36fbd6b9f91ba3a54 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 2 Jun 2019 18:35:46 -0700
Subject: Fix page titles for custom site name

- Fixes #113
---
 ui/src/components/post.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ui/src/components/post.tsx')

diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index 3e2e07b3..7152941f 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -253,7 +253,7 @@ export class Post extends Component<any, PostState> {
       this.state.moderators = res.moderators;
       this.state.admins = res.admins;
       this.state.loading = false;
-      document.title = `${this.state.post.name} - Lemmy`;
+      document.title = `${this.state.post.name} - ${WebSocketService.Instance.site.name}`;
       this.setState(this.state);
     } else if (op == UserOperation.CreateComment) {
       let res: CommentResponse = msg;
-- 
cgit v1.2.3

