|
|
@ -146,9 +146,11 @@ async def main():
|
|
|
|
'formatted_body': get_formatted_body(post)
|
|
|
|
'formatted_body': get_formatted_body(post)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for room_id in matrix[mxid].rooms:
|
|
|
|
for room_id in matrix[mxid].rooms:
|
|
|
|
await matrix[mxid].room_send(room_id=room_id,
|
|
|
|
if room_id != admin_room:
|
|
|
|
message_type='m.room.message',
|
|
|
|
# don't send updates to the admin room
|
|
|
|
content=content)
|
|
|
|
await matrix[mxid].room_send(room_id=room_id,
|
|
|
|
|
|
|
|
message_type='m.room.message',
|
|
|
|
|
|
|
|
content=content)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# no accesstoken for the calculated mxid
|
|
|
|
# no accesstoken for the calculated mxid
|
|
|
|
content = {
|
|
|
|
content = {
|
|
|
|