summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-22 09:24:13 -0700
committerDessalines <tyhou13@gmx.com>2019-04-22 09:24:13 -0700
commit466f988f47d858274c6de562a2ecc4ec6466bd4d (patch)
tree1d92e0775c0bf8be7b1d88ab9302d5314b691d9d /ui/src/components/post.tsx
parent1fce49ceefa685ac00d469a597748123df98f128 (diff)
Adding document titles.
- Fixes #100
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r--ui/src/components/post.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index a01bdcc8..5483338c 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -232,6 +232,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`;
this.setState(this.state);
} else if (op == UserOperation.CreateComment) {
let res: CommentResponse = msg;