fddf
This commit is contained in:
parent
b11e0b7130
commit
0ba9c35718
2 changed files with 3 additions and 3 deletions
|
@ -345,7 +345,7 @@ def get_comment(cid, v=None, graceful=False, **kwargs):
|
||||||
Comment,
|
Comment,
|
||||||
).filter(Comment.id == i).first()
|
).filter(Comment.id == i).first()
|
||||||
|
|
||||||
if not q and not graceful:
|
if not x and not graceful:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -320,7 +320,7 @@ def u_username(username, v=None):
|
||||||
for p in sticky:
|
for p in sticky:
|
||||||
ids = [p.id] + ids
|
ids = [p.id] + ids
|
||||||
|
|
||||||
listing = get_posts(ids, v=v, sort="new")
|
listing = get_posts(ids, v=v)
|
||||||
|
|
||||||
if u.unban_utc:
|
if u.unban_utc:
|
||||||
unban = datetime.fromtimestamp(u.unban_utc).strftime('%c')
|
unban = datetime.fromtimestamp(u.unban_utc).strftime('%c')
|
||||||
|
@ -519,7 +519,7 @@ def saved_posts(v, username):
|
||||||
|
|
||||||
ids=ids[0:25]
|
ids=ids[0:25]
|
||||||
|
|
||||||
listing = get_posts(ids, v=v, sort="new")
|
listing = get_posts(ids, v=v)
|
||||||
|
|
||||||
return {'html': lambda: render_template("userpage.html",
|
return {'html': lambda: render_template("userpage.html",
|
||||||
u=v,
|
u=v,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue