fsd
This commit is contained in:
parent
022c36799e
commit
a552455ea1
4 changed files with 5 additions and 4 deletions
|
@ -198,7 +198,7 @@ def api_comment(v):
|
||||||
|
|
||||||
body = request.values.get("body", "").strip()[:10000]
|
body = request.values.get("body", "").strip()[:10000]
|
||||||
|
|
||||||
if v.admin_level > 1 and parent_post.id == 37749 and level == 1:
|
if v.admin_level > 2 and parent_post.id == 37749 and level == 1:
|
||||||
with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f:
|
with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f:
|
||||||
f.write('\n{[para]}\n' + body)
|
f.write('\n{[para]}\n' + body)
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ def notifications(v):
|
||||||
x.voted = 1
|
x.voted = 1
|
||||||
if x not in c.replies2: c.replies2.append(x)
|
if x not in c.replies2: c.replies2.append(x)
|
||||||
|
|
||||||
if c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
if c.parent_comment and c.parent_comment.author_id == v.id:
|
||||||
parent = c.parent_comment
|
parent = c.parent_comment
|
||||||
if parent.replies2 == None: parent.replies2 = [c]
|
if parent.replies2 == None: parent.replies2 = [c]
|
||||||
elif c not in parent.replies2: parent.replies2.append(c)
|
elif c not in parent.replies2: parent.replies2.append(c)
|
||||||
|
|
|
@ -1281,8 +1281,9 @@ def submit_post(v, sub=None):
|
||||||
if body.startswith('!slots1000'):
|
if body.startswith('!slots1000'):
|
||||||
check_for_slots_command(body, snappy, c)
|
check_for_slots_command(body, snappy, c)
|
||||||
|
|
||||||
|
g.db.flush()
|
||||||
post.comment_count += 1
|
post.comment_count += 1
|
||||||
if len(body_html) < 40000: post.replies = [c]
|
post.replies = [c]
|
||||||
|
|
||||||
v.post_count = g.db.query(Submission.id).filter_by(author_id=v.id, is_banned=False, deleted_utc=0).count()
|
v.post_count = g.db.query(Submission.id).filter_by(author_id=v.id, is_banned=False, deleted_utc=0).count()
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
|
@ -279,7 +279,7 @@
|
||||||
}
|
}
|
||||||
.comment-{{c.id}}-only {
|
.comment-{{c.id}}-only {
|
||||||
animation-name: c{{c.id}}-tilt !important;
|
animation-name: c{{c.id}}-tilt !important;
|
||||||
animation-duration: 60s !important;
|
animation-duration: 30s !important;
|
||||||
animation-iteration-count: infinite !important;
|
animation-iteration-count: infinite !important;
|
||||||
animation-direction: alternate !important;
|
animation-direction: alternate !important;
|
||||||
animation-timing-function: linear !important;
|
animation-timing-function: linear !important;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue