From 4c9baa60eccf48629f18a6f93c6b0fc64a1fa343 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 10 Jul 2023 11:27:41 +0100 Subject: [PATCH] Update update-topics.yaml --- .github/workflows/update-topics.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/update-topics.yaml b/.github/workflows/update-topics.yaml index 2b5b0bedde..1f6be1f615 100644 --- a/.github/workflows/update-topics.yaml +++ b/.github/workflows/update-topics.yaml @@ -55,6 +55,11 @@ jobs: console.log(roomId, "nothing to do"); return; } + if (data["org.matrix.msc3765.topic"]) { + data["org.matrix.msc3765.topic"].forEach(d => { + data.body = data.body.replace(regex, RELEASE_TOPIC); + }); + } res = await fetch(apiUrl, { method: "PUT",