pizza
This commit is contained in:
parent
ddb2256a9f
commit
be2be7b743
4 changed files with 18 additions and 1 deletions
|
@ -871,7 +871,9 @@ def submit_post(v, sub=None):
|
|||
|
||||
url = urlunparse(new_url)
|
||||
|
||||
search_url = url.replace('\\', '').replace('_', '\_').replace('%', '').strip()
|
||||
search_url = url.replace('%', '')
|
||||
search_url = reddit_post_regex.sub(r'\1%', search_url)
|
||||
search_url = search_url.replace('\\', '').replace('_', '\_').strip()
|
||||
|
||||
repost = g.db.query(Submission).filter(
|
||||
Submission.url.ilike(search_url),
|
||||
|
@ -1289,6 +1291,8 @@ def submit_post(v, sub=None):
|
|||
g.db.add(autovote)
|
||||
autovote = Vote(user_id=CRAT_ID, submission_id=post.id, vote_type=1)
|
||||
g.db.add(autovote)
|
||||
autovote = Vote(user_id=PIZZASHILLSHILL_ID, submission_id=post.id, vote_type=1)
|
||||
g.db.add(autovote)
|
||||
v.coins += 3
|
||||
v.truecoins += 3
|
||||
g.db.add(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue