forked from rDrama/rDrama
1
0
Fork 0

minor fix to annoying unique constraint errors

master
Aevann 2023-05-10 19:30:47 +03:00
parent e44ee52d81
commit f1275793e7
1 changed files with 1 additions and 0 deletions

View File

@ -826,6 +826,7 @@ def userpagelisting(user:User, v=None, page:int=1, sort="new", t="all"):
return [x.id for x in posts], total
@app.get("/@<username>")
@limiter.limit('1/second', scope=rpath, key_func=get_ID)
@limiter.limit(DEFAULT_RATELIMIT)
@auth_required
def u_username_wall(v:Optional[User], username:str):