bv
This commit is contained in:
parent
b21251b345
commit
8dde94fb29
2 changed files with 5 additions and 5 deletions
|
@ -873,9 +873,9 @@ def edit_comment(cid, v):
|
||||||
@auth_required
|
@auth_required
|
||||||
def delete_comment(cid, v):
|
def delete_comment(cid, v):
|
||||||
|
|
||||||
comment = get_comment(cid, v=v)
|
c = get_comment(cid, v=v)
|
||||||
|
|
||||||
if not comment.deleted_utc:
|
if not c.deleted_utc:
|
||||||
|
|
||||||
if c.author_id != v.id: abort(403)
|
if c.author_id != v.id: abort(403)
|
||||||
|
|
||||||
|
@ -894,9 +894,9 @@ def delete_comment(cid, v):
|
||||||
@auth_required
|
@auth_required
|
||||||
def undelete_comment(cid, v):
|
def undelete_comment(cid, v):
|
||||||
|
|
||||||
comment = get_comment(cid, v=v)
|
c = get_comment(cid, v=v)
|
||||||
|
|
||||||
if comment.deleted_utc:
|
if c.deleted_utc:
|
||||||
if c.author_id != v.id: abort(403)
|
if c.author_id != v.id: abort(403)
|
||||||
|
|
||||||
c.deleted_utc = 0
|
c.deleted_utc = 0
|
||||||
|
|
|
@ -722,7 +722,7 @@ def thumbnail_thread(pid):
|
||||||
|
|
||||||
if SITE_NAME == 'Drama':
|
if SITE_NAME == 'Drama':
|
||||||
for t in ("submission","comment"):
|
for t in ("submission","comment"):
|
||||||
word = random.choice(('rdrama','marsey'))
|
word = random.choice(('rdrama','marsey','2much4you.net'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = requests.get(f'https://api.pushshift.io/reddit/{t}/search?html_decode=true&q={word}&size=1')
|
data = requests.get(f'https://api.pushshift.io/reddit/{t}/search?html_decode=true&q={word}&size=1')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue