Skip to content

Commit 7320e37

Browse files
committed
Update topic workflow for correct topic format
1 parent 386db8f commit 7320e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-topics.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ jobs:
8282
return;
8383
}
8484
if (data["org.matrix.msc3765.topic"]) {
85-
data["org.matrix.msc3765.topic"].forEach(d => {
85+
data["org.matrix.msc3765.topic"]?.["m.text"].forEach(d => {
8686
d.body = d.body.replace(regex, releaseTopic);
8787
});
8888
}
8989
if (data["m.topic"]) {
90-
data["m.topic"].forEach(d => {
90+
data["m.topic"]?.["m.text"].forEach(d => {
9191
d.body = d.body.replace(regex, releaseTopic);
9292
});
9393
}

0 commit comments

Comments
 (0)