From 515cc8d05e27978eb141e0af2dadb448ee9426e3 Mon Sep 17 00:00:00 2001 From: Tnix Date: Tue, 20 Aug 2024 23:39:44 +1200 Subject: [PATCH] fix admin chat post fetching --- rest_api/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_api/admin.py b/rest_api/admin.py index 4969d45..5240fdc 100644 --- a/rest_api/admin.py +++ b/rest_api/admin.py @@ -1086,7 +1086,7 @@ async def get_chat_posts(chat_id, query_args: GetChatPostsQueryArgs): # Return posts return { "error": False, - "autoget": app.supporter.parse_posts_v0(post, requester=request.user), + "autoget": app.supporter.parse_posts_v0(posts, requester=request.user), "page#": query_args.page, "pages": get_total_pages("posts", query) }, 200