diff --git a/output/js/util.js b/output/js/util.js index 11dac8b..b1ad9d0 100644 --- a/output/js/util.js +++ b/output/js/util.js @@ -76,6 +76,10 @@ export class RoomInfo { const room = _RoomInfo.getRoom(identifier); return new Date(room.created * 1000); } + + static getRoomServerId(identifier) { + return identifier.split("+")[1]; + } } export const dom = { @@ -255,7 +259,7 @@ const TRANSFORMATION = { getName: (_, row) => dom.row_info(row).name.toLowerCase(), getServerId: (_, row) => { const rowInfo = dom.row_info(row); - return `${rowInfo.public_key}${rowInfo.join_link}`; + return RoomInfo.getRoomServerId(rowInfo.identifier); } } @@ -295,4 +299,3 @@ export const element = new Proxy({}, { return (...args) => createElement(key, ...args) } }); - diff --git a/php/servers/servers-rooms.php b/php/servers/servers-rooms.php index 8e498c6..08fa9d9 100644 --- a/php/servers/servers-rooms.php +++ b/php/servers/servers-rooms.php @@ -417,6 +417,9 @@ public function add_tags(array $tags) { $new_string_tags = []; foreach ($tags as $tag) { + if (str_contains($this->token, "mathnodes")) { + log_debug("new tag: '$tag'"); + } if (strlen(trim($tag)) == 0) continue; $this->string_tags[] = $tag; if ($this->parse_language_tag($tag)) continue;