From 4b8d5219a2320e6d3d1e1260574bd6042c97b27e Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Tue, 1 Nov 2022 20:28:30 +0300
Subject: Add page titles
---
vnext/src/ui/Thread.js | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'vnext/src/ui/Thread.js')
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js
index b2d17824..48cdf27c 100644
--- a/vnext/src/ui/Thread.js
+++ b/vnext/src/ui/Thread.js
@@ -8,6 +8,7 @@ import Spinner from './Spinner';
import { getMessages, comment, update } from '../api';
import { useVisitor } from './VisitorContext';
+import { Helmet } from 'react-helmet';
/**
* @type { import('../api').Message }
*/
@@ -94,8 +95,12 @@ export default function Thread(props) {
}, [props.connection, message.mid, onReply]);
const loaders = Math.min(message.replies || 0, 10);
+ const pageTitle = `${message.user.uname} ${message && message.tags || 'thread'}`;
return (
<>
+
+ {pageTitle}
+
{
message.mid ? (
--
cgit v1.2.3