diff --git a/dockerfile b/dockerfile index ed02c9f..22ecb19 100644 --- a/dockerfile +++ b/dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-alpine +FROM python:3-alpine WORKDIR /app COPY . . RUN apk add --no-cache bash make build-base diff --git a/rest_api/v0/inbox.py b/rest_api/v0/inbox.py index ae2a756..2d595d9 100644 --- a/rest_api/v0/inbox.py +++ b/rest_api/v0/inbox.py @@ -22,7 +22,7 @@ async def get_inbox_posts(query_args: GetInboxQueryArgs): abort(401) # Get and return posts - query = {"u": {"$or": [request.user, "Server"]}, "post_origin": "inbox", "isDeleted": False} + query = {"$or": [{"u": request.user}, {"u": "Server"}], "post_origin": "inbox", "isDeleted": False} return { "error": False, "autoget": app.supporter.parse_posts_v0(db.posts.find(