added hidden posts to filter. added date

This commit is contained in:
2024-12-31 15:53:25 +01:00
parent 8b12ca9dae
commit e7d21a90bb
2 changed files with 7 additions and 5 deletions

View File

@@ -26,8 +26,10 @@ class Archive_GetPosts(Resource):
param.append(1)
if "denied" in request.args:
param.append(2)
if "hidden" in request.args:
param.append(3)
if param == []:
param = [0,1,2]
param = [0,1,2,3]
real_page = page-1
offset = real_page * count