PCM: disable repost detection.
parent
3bbed007b7
commit
73b71b2f44
|
@ -159,6 +159,7 @@ FEATURES = {
|
|||
'USERS_PROFILE_SONG': True,
|
||||
'USERS_SUICIDE': True,
|
||||
'MARKUP_COMMANDS': True,
|
||||
'REPOST_DETECTION': True,
|
||||
}
|
||||
|
||||
EMOJI_MARSEYS = True
|
||||
|
@ -235,8 +236,6 @@ elif SITE == 'deuxrama.net':
|
|||
FEATURES['PROCOINS'] = False
|
||||
SIDEBAR_THREAD = 175
|
||||
BADGE_THREAD = 142
|
||||
elif SITE == 'lgbdropthet.com':
|
||||
GAMBLING_THREAD = 25
|
||||
|
||||
if SITE in {'rdrama.net', 'devrama.xyz', 'deuxrama.net'}:
|
||||
HOLE_COST = 50000
|
||||
|
@ -287,6 +286,7 @@ if SITE in {'rdrama.net', 'devrama.xyz', 'deuxrama.net'}:
|
|||
}
|
||||
elif SITE == 'pcmemes.net':
|
||||
PIN_LIMIT = 10
|
||||
FEATURES['REPOST_DETECTION'] = False
|
||||
POST_RATE_LIMIT = '1/second;4/minute;20/hour;100/day'
|
||||
|
||||
HOLE_COST = 2000
|
||||
|
@ -365,9 +365,12 @@ elif SITE == 'lgbdropthet.com':
|
|||
WELCOME_MSG = "**Welcome to LGBDropTheT!**\n\nWe are a community of gay, lesbian, and bisexual men and women (and our allies) who believe that the LGB community should separate from the Transgender and Queer+ communities. \n\nWe believe sexuality and gender identity are distinct and unrelated concepts, and that the interests and goals of our communities are misrepresented by grouping our experiences and politics as one. LGB and TQ+ both deserve a supportive community, but neither one should be at the expense of the other. We feel our rights and protections are under attack due to the Transgender and Queer+ movements silencing and condemning our beliefs. \n\nWe believe that men are adult human males and women are adult human females. Our orientations are based towards an individual's sex, not gender identity. The same organizations and communities that we created in order to solidify ourselves now label us as \"phobic\", \"preferential\", or \"genital fetishists\". The TQ+ dogma and rhetoric are coercing gay men, lesbians, and bisexuals to suppress same-sex attraction in favor of fluidity and non-distinction of the opposite sex. Our gender non-conforming LGB youth are being taught that they're born in the wrong body, and persuaded to take life-altering medications to correct their \"sex assigned at birth\". \n\nThis is nothing more than homophobia and conversion therapy disguised as progress. \n\nIt's time to reclaim our organizations and movement by and for our own people. We want to \"Drop The T\" and all the letters after it, and ensure that the needs of lesbians, gay men, and bisexuals are centered once-again. \n\n* If you're new to our movement and how we operate, we recommend starting with our **[Rules and FAQs](https://lgbdropthet.com/kb/rulesfaqs)** to better understand our community guidelines. \n\n* To familiarize yourself with how the site works, we recommend visiting our **[Help and Support](https://lgbdropthet.com/h/help_and_support)** community. Feel free to make a test post of your own there so you can get used to using the features - you can always delete your post later. \n\n* Feeling a little overwhelmed and don't know where to start? Consider introducing yourself in our **[Off-Topic / Social](https://lgbdropthet.com/h/off_topic_social)** community. \n\nThank you for being a part of our growing movement, we look forward to seeing you! \n\n**~ The LGBDropTheT team**"
|
||||
|
||||
LOTTERY_ENABLED = False
|
||||
|
||||
GAMBLING_THREAD = 25
|
||||
else: # localhost or testing environment implied
|
||||
FEATURES['PRONOUNS'] = True
|
||||
FEATURES['HOUSES'] = True
|
||||
#FEATURES['REPOST_DETECTION'] = False
|
||||
|
||||
if SITE == 'deuxrama.net':
|
||||
PERMS['HOLE_CREATE'] = 3
|
||||
|
|
|
@ -643,6 +643,8 @@ def thumbnail_thread(pid):
|
|||
|
||||
@app.post("/is_repost")
|
||||
def api_is_repost():
|
||||
if not FEATURES['REPOST_DETECTION']:
|
||||
return {'permalink': ''}
|
||||
|
||||
url = request.values.get('url')
|
||||
if not url: abort(400)
|
||||
|
@ -776,7 +778,8 @@ def submit_post(v, sub=None):
|
|||
Submission.deleted_utc == 0,
|
||||
Submission.is_banned == False
|
||||
).first()
|
||||
if repost and SITE != 'localhost': return redirect(repost.permalink)
|
||||
if repost and FEATURES['REPOST_DETECTION']:
|
||||
return redirect(repost.permalink)
|
||||
|
||||
domain_obj = get_domain(domain)
|
||||
if not domain_obj: domain_obj = get_domain(domain+parsed_url.path)
|
||||
|
|
Loading…
Reference in New Issue