forked from rDrama/rDrama
Merge remote-tracking branch 'origin/master'
commit
212bd6c2de
|
@ -256,7 +256,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
|
||||||
g.db.add(self.comment_aux)
|
g.db.add(self.comment_aux)
|
||||||
|
|
||||||
def realbody(self, v):
|
def realbody(self, v):
|
||||||
if self.post and self.post.club and not (v and v.coins > 150): return "<p>COUNTRY CLUB ONLY</p>"
|
if self.post and self.post.club and not (v and v.paid_dues): return "<p>COUNTRY CLUB ONLY</p>"
|
||||||
body = self.comment_aux.body_html
|
body = self.comment_aux.body_html
|
||||||
|
|
||||||
if not v or v.slurreplacer:
|
if not v or v.slurreplacer:
|
||||||
|
|
|
@ -333,7 +333,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
||||||
g.db.add(self.submission_aux)
|
g.db.add(self.submission_aux)
|
||||||
|
|
||||||
def realbody(self, v):
|
def realbody(self, v):
|
||||||
if self.club and not (v and v.coins > 150): return "COUNTRY CLUB ONLY"
|
if self.club and not (v and v.paid_dues): return "COUNTRY CLUB ONLY"
|
||||||
body = self.submission_aux.body_html
|
body = self.submission_aux.body_html
|
||||||
|
|
||||||
if not v or v.slurreplacer:
|
if not v or v.slurreplacer:
|
||||||
|
@ -354,7 +354,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
||||||
g.db.add(self.submission_aux)
|
g.db.add(self.submission_aux)
|
||||||
|
|
||||||
def realtitle(self, v):
|
def realtitle(self, v):
|
||||||
if self.club and not (v and v.coins > 150) and not (v and v.admin_level == 6): return 'COUNTRY CLUB MEMBERS ONLY'
|
if self.club and not (v and v.paid_dues) and not (v and v.admin_level == 6): return 'COUNTRY CLUB MEMBERS ONLY'
|
||||||
elif self.title_html: title = self.title_html
|
elif self.title_html: title = self.title_html
|
||||||
else: title = self.title
|
else: title = self.title
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ def api_comment(v):
|
||||||
parent_id = parent_fullname.split("_")[1]
|
parent_id = parent_fullname.split("_")[1]
|
||||||
if parent_fullname.startswith("t2"):
|
if parent_fullname.startswith("t2"):
|
||||||
parent_post = get_post(parent_id, v=v)
|
parent_post = get_post(parent_id, v=v)
|
||||||
if parent_post.club and not (v and v.coins > 150): abort(403)
|
if parent_post.club and not (v and v.paid_dues): abort(403)
|
||||||
parent = parent_post
|
parent = parent_post
|
||||||
parent_comment_id = None
|
parent_comment_id = None
|
||||||
level = 1
|
level = 1
|
||||||
|
|
Loading…
Reference in New Issue