aboutsummaryrefslogtreecommitdiff
path: root/cgi/weabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/weabot.py')
-rwxr-xr-xcgi/weabot.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index 85656d2..9a61acb 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -244,8 +244,7 @@ class weabot(object):
content = content.replace('.html', '')
threads['url'] = content
caught = True
- self.output = renderTemplate(
- 'latest.html', {'latest_age_ib': latest_age_ib, 'latest_age_bbs': latest_age_bbs}, True)
+ self.output = renderTemplate('latest.html', {'latest_age_ib': latest_age_ib, 'latest_age_bbs': latest_age_bbs}, True)
elif path_split[1] == "mobilenewest":
OpenDb()
newthreads = getNewThreads(Settings.HOME_LASTPOSTS)
@@ -848,13 +847,9 @@ class weabot(object):
post_url = make_url(postid, post, parent_post or post, noko, mobile)
if not board['secret']:
- # add to recent posts
- if Settings.ENABLE_RSS:
- latestAdd(post, thread_length, postid, parent_post)
# call discord hook
if Settings.ENABLE_DISCORD_HOOK:
- hook_url = make_url(
- postid, post, parent_post or post, True, False)
+ hook_url = make_url(postid, post, parent_post or post, True, False)
discord_hook(post, parent_post, hook_url)
return (post_url, ttaken, postid)
@@ -895,7 +890,6 @@ class weabot(object):
deltype = 1
deletePost(to_delete[0], password, deltype, imageonly)
- latestRemove(post['id'])
regenerateHome()
else:
# delete all checked posts (IB)
@@ -906,7 +900,6 @@ class weabot(object):
for pid in to_delete:
try:
deletePost(pid, password, board['recyclebin'], imageonly)
- latestRemove(pid)
deleted += 1
msgs.append('No.%d: Eliminado' % pid)
except UserError as message: