[#80] why is linkedin even banned
This commit is contained in:
parent
309bf44f12
commit
5eb9bb635c
1 changed files with 0 additions and 4 deletions
|
@ -581,8 +581,6 @@ def message2(v, username):
|
||||||
|
|
||||||
if not message: return {"error": "Message is empty!"}
|
if not message: return {"error": "Message is empty!"}
|
||||||
|
|
||||||
if 'linkedin.com' in message: return {"error": "This domain 'linkedin.com' is banned."}, 403
|
|
||||||
|
|
||||||
body_html = sanitize(message)
|
body_html = sanitize(message)
|
||||||
|
|
||||||
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
|
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
|
||||||
|
@ -639,8 +637,6 @@ def messagereply(v):
|
||||||
|
|
||||||
if not message and not request.files.get("file"): return {"error": "Message is empty!"}
|
if not message and not request.files.get("file"): return {"error": "Message is empty!"}
|
||||||
|
|
||||||
if 'linkedin.com' in message: return {"error": "this domain 'linkedin.com' is banned"}
|
|
||||||
|
|
||||||
id = int(request.values.get("parent_id"))
|
id = int(request.values.get("parent_id"))
|
||||||
parent = get_comment(id, v=v)
|
parent = get_comment(id, v=v)
|
||||||
user_id = parent.author.id
|
user_id = parent.author.id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue