replace libreddit instance (old one stopped functioning

master
Aevann 2023-08-15 22:45:38 +03:00
parent e6ba0e69c4
commit f02029aab2
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ def settings_personal_post(v):
updated = True
elif request.values.get("reddit", v.reddit) != v.reddit:
reddit = request.values.get("reddit")
if reddit in {'old.reddit.com', 'reddit.com', 'i.reddit.com', 'reddit.lol', 'libredd.it'}:
if reddit in {'old.reddit.com', 'reddit.com', 'i.reddit.com', 'reddit.lol', 'libreddit.hu'}:
updated = True
v.reddit = reddit
elif request.values.get("poor", v.poor) != v.poor:

View File

@ -115,7 +115,7 @@
<p>Change the domain you would like to view reddit posts in.</p>
<div class="input-group">
<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', 'reddit.com', 'i.reddit.com', 'reddit.lol', 'libredd.it'] %}
{% for entry in ['old.reddit.com', 'reddit.com', 'i.reddit.com', 'reddit.lol', 'libreddit.hu'] %}
<option value="{{entry}}"{{' selected' if v.reddit==entry}}>{{entry}}</option>
{% endfor %}
</select>