Beispiel #1
0
  def get(self, board, thread, post):
    
    key = board + "%d" % post
    cookie = self.get_secure_cookie(key, True)
    if cookie.get('win') == key:
      if delete_post(board, thread, post, "AN HERO"):
        self.delete_cookie(key)

    return redirect("/%s/%d" %( board, thread) )
Beispiel #2
0
  def get(self, board, thread, post):
    
    key = board + "%d" % post
    cookie = self.get_secure_cookie(key, True)

    user = users.get_current_user()
    mods = get_config("aib.ib", "mod_name")

    if cookie.get('win') == key or (user and user.email() in mods):
      if delete_post(board, thread, post, "AN HERO"):
        self.delete_cookie(key)

    return redirect("/%s/%d" %( board, thread) )
Beispiel #3
0
 def post(self, board, thread, post):
   util.delete_post(board, thread, post, "ANAL RAPED")
   return Response("ok")