dffd
This commit is contained in:
parent
384143594d
commit
efcbbaa73a
1 changed files with 0 additions and 2 deletions
|
@ -465,7 +465,6 @@ def api_comment(v):
|
||||||
continue
|
continue
|
||||||
if user.id != v.id:
|
if user.id != v.id:
|
||||||
notify_users.add(user.id)
|
notify_users.add(user.id)
|
||||||
if v.id == 1: print(notify_users)
|
|
||||||
for x in notify_users:
|
for x in notify_users:
|
||||||
n = Notification(comment_id=c.id, user_id=x)
|
n = Notification(comment_id=c.id, user_id=x)
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
@ -508,7 +507,6 @@ def api_comment(v):
|
||||||
g.db.add(parent_post)
|
g.db.add(parent_post)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
if v.id == 1: print(c.comment_aux)
|
|
||||||
if request.headers.get("Authorization"): return c.json
|
if request.headers.get("Authorization"): return c.json
|
||||||
else: return jsonify({"html": render_template("comments.html",
|
else: return jsonify({"html": render_template("comments.html",
|
||||||
v=v,
|
v=v,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue