page title & instance stats

This commit is contained in:
TomatoCake
2024-08-25 18:32:49 +02:00
parent 1de4767c6d
commit 79463edb07
3 changed files with 40 additions and 2 deletions

View File

@@ -658,7 +658,7 @@ class Channel{
const prom=this.infinite.delete();
history.pushState(null, "","/channels/"+this.guild_id+"/"+this.snowflake);
(document.getElementById("channelname") as HTMLSpanElement).textContent="#"+this.name;
this.localuser.pageTitle("#"+this.name);
const channelTopic=document.getElementById("channelTopic") as HTMLSpanElement;
if (this.topic) {
channelTopic.innerHTML=new MarkDown(this.topic, this).makeHTML().innerHTML;