forked from MarseyWorld/MarseyWorld
imginn -> imgsed
parent
3f09930678
commit
70cc32d871
|
@ -64,8 +64,8 @@ def normalize_urls_runtime(body, v):
|
|||
if v and v.nitter:
|
||||
body = twitter_to_nitter_regex.sub(r'\1https://nitter.net/', body)
|
||||
|
||||
if v and v.imginn:
|
||||
body = body.replace('https://instagram.com/', 'https://imginn.com/')
|
||||
if v and v.imgsed:
|
||||
body = body.replace('https://instagram.com/', 'https://imgsed.com/')
|
||||
|
||||
if not v or v.controversial:
|
||||
captured = []
|
||||
|
|
|
@ -103,7 +103,7 @@ class User(Base):
|
|||
newtabexternal = Column(Boolean, default=True)
|
||||
reddit = Column(String, default='old.reddit.com')
|
||||
nitter = Column(Boolean)
|
||||
imginn = Column(Boolean)
|
||||
imgsed = Column(Boolean)
|
||||
frontsize = Column(Integer, default=25)
|
||||
controversial = Column(Boolean, default=False)
|
||||
bio = deferred(Column(String))
|
||||
|
|
|
@ -159,7 +159,7 @@ def settings_personal_post(v):
|
|||
updated = updated or update_flag("newtab", "newtab")
|
||||
updated = updated or update_flag("newtabexternal", "newtabexternal")
|
||||
updated = updated or update_flag("nitter", "nitter")
|
||||
updated = updated or update_flag("imginn", "imginn")
|
||||
updated = updated or update_flag("imgsed", "imgsed")
|
||||
updated = updated or update_flag("controversial", "controversial")
|
||||
updated = updated or update_flag("show_sigs", "show_sigs")
|
||||
updated = updated or update_flag("is_private", "private")
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
<h5>External Services</h5>
|
||||
<div class="settings-section rounded">
|
||||
{{common.toggle_section("Use Nitter for Twitter Links", "nitter", "nitter", v.nitter, "Enable if you would like to automatically convert twitter.com links to nitter.net links.", false)}}
|
||||
{{common.toggle_section("Use Imginn for Instagram Links", "imginn", "imginn", v.imginn, "Enable if you would like to automatically convert instagram.com links to imginn.com links.", false)}}
|
||||
{{common.toggle_section("Use imgsed for Instagram Links", "imgsed", "imgsed", v.imgsed, "Enable if you would like to automatically convert instagram.com links to imgsed.com links.", false)}}
|
||||
<div class="d-lg-flex border-bottom">
|
||||
<div class="title w-lg-25">
|
||||
<label for="reddit">Reddit Domain</label>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
alter table users rename column imginn to imgsed;
|
|
@ -154,7 +154,7 @@ CREATE TABLE public.users (
|
|||
last_viewed_post_notifs integer NOT NULL,
|
||||
pronouns character varying(15) NOT NULL,
|
||||
last_viewed_log_notifs integer NOT NULL,
|
||||
imginn boolean,
|
||||
imgsed boolean,
|
||||
earlylife integer,
|
||||
bite integer,
|
||||
old_house character varying(16),
|
||||
|
@ -3045,4 +3045,3 @@ ALTER TABLE ONLY public.comments
|
|||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
|
|
Loading…
Reference in New Issue