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