mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 05:09:05 +00:00
style: linting
This commit is contained in:
@@ -164,7 +164,7 @@ async def rooms_get_by_name(
|
||||
room = await rooms_controller.get_by_name(room_name)
|
||||
if not room:
|
||||
raise HTTPException(status_code=404, detail="Room not found")
|
||||
|
||||
|
||||
# Convert to RoomDetails format (add webhook fields if user is owner)
|
||||
room_dict = room.__dict__.copy()
|
||||
if user_id == room.user_id:
|
||||
@@ -175,7 +175,7 @@ async def rooms_get_by_name(
|
||||
# Non-owner, hide webhook details
|
||||
room_dict["webhook_url"] = None
|
||||
room_dict["webhook_secret"] = None
|
||||
|
||||
|
||||
return RoomDetails(**room_dict)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user