added get_thread_messages and create_forum_thread endpoints
This commit is contained in:
1 parent
c9cf3412d8
commit
6ef93e751b
11 files changed
+109
-31
No files matched your search
@@ -24,3 +24,11 @@ def user_in_thread(user_id: int, thread_id: int) -> bool:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def user_owns_forum(user_id: int, forum_id: int) -> bool:
|
||||
forum_owner_ids: list[int] = database.get_forum_owners(forum_id)
|
||||
|
||||
if not forum_owner_ids:
|
||||
return False
|
||||
|
||||
return user_id in forum_owner_ids
|
||||
Reference in new issue
Block a user