sneed
This commit is contained in:
parent
bce20dc242
commit
094ff2fe58
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ def edit_post(pid, v):
|
||||||
p.body_html = body_html
|
p.body_html = body_html
|
||||||
title = request.form.get("title")
|
title = request.form.get("title")
|
||||||
p.title = title
|
p.title = title
|
||||||
p.title_html = sanitize(title, linkgen=True, flair=True)
|
p.title_html = sanitize(title, flair=True)
|
||||||
|
|
||||||
if int(time.time()) - p.created_utc > 60 * 3: p.edited_utc = int(time.time())
|
if int(time.time()) - p.created_utc > 60 * 3: p.edited_utc = int(time.time())
|
||||||
g.db.add(p)
|
g.db.add(p)
|
||||||
|
|
|
@ -703,7 +703,7 @@ def settings_title_change(v):
|
||||||
|
|
||||||
v.customtitleplain = new_name
|
v.customtitleplain = new_name
|
||||||
new_name = new_name.replace('_','\_')
|
new_name = new_name.replace('_','\_')
|
||||||
new_name = sanitize(new_name, linkgen=True, flair=True)
|
new_name = sanitize(new_name, flair=True)
|
||||||
|
|
||||||
v = g.db.query(User).with_for_update().options(lazyload('*')).filter_by(id=v.id).first()
|
v = g.db.query(User).with_for_update().options(lazyload('*')).filter_by(id=v.id).first()
|
||||||
v.customtitle = new_name
|
v.customtitle = new_name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue