summaryrefslogtreecommitdiffstats
path: root/ui/src/components/user.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/user.tsx
parent1fce49ceefa685ac00d469a597748123df98f128 (diff)
Adding document titles.
- Fixes #100
Diffstat (limited to 'ui/src/components/user.tsx')
-rw-r--r--ui/src/components/user.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx
index 8ebde48a..b530e41e 100644
--- a/ui/src/components/user.tsx
+++ b/ui/src/components/user.tsx
@@ -294,6 +294,7 @@ export class User extends Component<any, UserState> {
this.state.follows = res.follows;
this.state.moderates = res.moderates;
this.state.posts = res.posts;
+ document.title = `/u/${this.state.user.name} - Lemmy`;
this.setState(this.state);
}
}