teddit and libreddit are gone
parent
b2dede21b1
commit
5fc76a2cca
|
@ -254,7 +254,7 @@ sanitize_url_regex = re.compile(
|
||||||
|
|
||||||
#sanitizing
|
#sanitizing
|
||||||
reddit_mention_regex = re.compile('([>\s])\/?(r|u)(\/[\w-]{2,25})' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A)
|
reddit_mention_regex = re.compile('([>\s])\/?(r|u)(\/[\w-]{2,25})' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A)
|
||||||
reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(redd.it\/|((www\.|new\.)?reddit\.com|teddit\.net|libreddit\.hu|redd\.it)\/(u\/(?![\w-]{2,25}\/s\/)|user\/|(r\/\w{2,25}\/)?comments\/|r\/\w{2,25}\/?$))", flags=re.A)
|
reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(redd.it\/|((www\.|new\.)?reddit\.com|redd\.it)\/(u\/(?![\w-]{2,25}\/s\/)|user\/|(r\/\w{2,25}\/)?comments\/|r\/\w{2,25}\/?$))", flags=re.A)
|
||||||
reddit_comment_link_regex = re.compile("https:\/\/old.reddit.com\/r\/\w{2,25}\/comments(\/\w+){3}\/?.*", flags=re.A)
|
reddit_comment_link_regex = re.compile("https:\/\/old.reddit.com\/r\/\w{2,25}\/comments(\/\w+){3}\/?.*", flags=re.A)
|
||||||
|
|
||||||
#gevent
|
#gevent
|
||||||
|
|
|
@ -137,7 +137,7 @@ def settings_personal_post(v):
|
||||||
updated = True
|
updated = True
|
||||||
elif request.values.get("reddit", v.reddit) != v.reddit:
|
elif request.values.get("reddit", v.reddit) != v.reddit:
|
||||||
reddit = request.values.get("reddit")
|
reddit = request.values.get("reddit")
|
||||||
if reddit in {'old.reddit.com', 'new.reddit.com', 'reddit.com', 'teddit.net', 'libreddit.hu', 'undelete.pullpush.io'}:
|
if reddit in {'old.reddit.com', 'new.reddit.com', 'reddit.com', 'undelete.pullpush.io'}:
|
||||||
updated = True
|
updated = True
|
||||||
v.reddit = reddit
|
v.reddit = reddit
|
||||||
elif request.values.get("poor", v.poor) != v.poor:
|
elif request.values.get("poor", v.poor) != v.poor:
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
<p>Change the domain you would like to view reddit posts in.</p>
|
<p>Change the domain you would like to view reddit posts in.</p>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select autocomplete="off" id='reddit' class="form-control setting_select" data-nonce="{{g.nonce}}" form="profile-settings" name="reddit">
|
<select autocomplete="off" id='reddit' class="form-control setting_select" data-nonce="{{g.nonce}}" form="profile-settings" name="reddit">
|
||||||
{% for entry in ['old.reddit.com', 'new.reddit.com', 'reddit.com', 'teddit.net', 'libreddit.hu', 'undelete.pullpush.io'] %}
|
{% for entry in ['old.reddit.com', 'new.reddit.com', 'reddit.com', 'undelete.pullpush.io'] %}
|
||||||
<option value="{{entry}}" {{'selected' if v.reddit == entry}}>{{entry}}</option>
|
<option value="{{entry}}" {{'selected' if v.reddit == entry}}>{{entry}}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue