Update update-topics.yaml

This commit is contained in:
Michael Telatynski 2023-07-10 11:27:41 +01:00 committed by GitHub
parent cb2d5efa4e
commit 4c9baa60ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",