default to None room topic if invalid/redacted for spaces too
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
c61aee4f1c
commit
ce414023a4
1 changed files with 2 additions and 1 deletions
|
@ -572,7 +572,8 @@ impl Service {
|
||||||
error!("Invalid room topic event in database for room {}", room_id);
|
error!("Invalid room topic event in database for room {}", room_id);
|
||||||
Error::bad_database("Invalid room topic event in database.")
|
Error::bad_database("Invalid room topic event in database.")
|
||||||
})
|
})
|
||||||
})?,
|
})
|
||||||
|
.unwrap_or(None),
|
||||||
world_readable: world_readable(room_id)?,
|
world_readable: world_readable(room_id)?,
|
||||||
guest_can_join: guest_can_join(room_id)?,
|
guest_can_join: guest_can_join(room_id)?,
|
||||||
avatar_url: services()
|
avatar_url: services()
|
||||||
|
|
Loading…
Add table
Reference in a new issue