use SITE_FULL_IMAGES in more places

pull/142/head
Aevann 2023-03-19 18:28:19 +02:00
parent f2718ece3a
commit df1ebf7cad
30 changed files with 89 additions and 82 deletions

View File

@ -26,8 +26,10 @@ class BadgeDef(Base):
@property
@lazy
def path(self):
if 20 < self.id < 28 or self.id == 222: return SITE_FULL + f"/i/{SITE_NAME}/badges/{self.id}.webp?b=7"
return SITE_FULL + f"/i/badges/{self.id}.webp?b=7"
if 20 < self.id < 28 or self.id == 222:
return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?b=7"
return f"{SITE_FULL_IMAGES}/i/badges/{self.id}.webp?b=7"
class Badge(Base):

View File

@ -41,7 +41,7 @@ class Sub(Base):
@lazy
def sidebar_url(self):
if self.sidebarurl: return self.sidebarurl
return f'/i/{SITE_NAME}/sidebar.webp?v=3009'
return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/sidebar.webp?v=3009'
@property
@lazy
@ -62,7 +62,7 @@ class Sub(Base):
@lazy
def marsey_url(self):
if self.marseyurl: return self.marseyurl
return f'/i/{SITE_NAME}/headericon.webp?v=3009'
return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/headericon.webp?v=3009'
@property
@lazy

View File

@ -153,16 +153,21 @@ class Submission(Base):
@property
@lazy
def thumb_url(self):
if self.over_18: return f"{SITE_FULL}/i/nsfw.webp?v=1"
elif not self.url: return f"{SITE_FULL}/i/{SITE_NAME}/default_text.webp?v=2"
if self.over_18:
return f"{SITE_FULL_IMAGES}/i/nsfw.webp?v=1"
elif not self.url:
return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/default_text.webp?v=2"
elif self.thumburl:
if self.thumburl.startswith('/'): return SITE_FULL + self.thumburl
return self.thumburl
elif self.is_youtube or self.is_video: return f"{SITE_FULL}/i/default_thumb_video.webp?v=2"
elif self.is_audio: return f"{SITE_FULL}/i/default_thumb_audio.webp?v=1"
elif self.is_youtube or self.is_video:
return f"{SITE_FULL_IMAGES}/i/default_thumb_video.webp?v=2"
elif self.is_audio:
return f"{SITE_FULL_IMAGES}/i/default_thumb_audio.webp?v=1"
elif self.domain in {SITE, BAN_EVASION_DOMAIN}:
return f"{SITE_FULL}/i/{SITE_NAME}/site_preview.webp?v=3009"
else: return f"{SITE_FULL}/i/default_thumb_link.webp?v=1"
return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/site_preview.webp?v=3009"
else:
return f"{SITE_FULL_IMAGES}/i/default_thumb_link.webp?v=1"
@property
@lazy

View File

@ -295,9 +295,9 @@ class User(Base):
if IS_FISTMAS():
hat = random.choice(('Santa Hat III', 'Winter Cap', 'Present Bow'))
if SITE_NAME == 'rDrama':
return (f'/i/hats/{hat}.webp', 'Merry Fistmas!')
return (f'{SITE_FULL_IMAGES}/i/hats/{hat}.webp', 'Merry Fistmas!')
else:
return (f'/i/hats/{hat}.webp', 'Merry Christmas!')
return (f'{SITE_FULL_IMAGES}/i/hats/{hat}.webp', 'Merry Christmas!')
if self.is_cakeday:
return ('/i/hats/Cakeday.webp', "I've spent another year rotting my brain with dramaposting, please ridicule me 🤓")
@ -306,10 +306,10 @@ class User(Base):
return ('/i/new-user.webp', "Hi, I'm new here! Please be gentle :)")
if self.forced_hat:
return (f'/i/hats/{self.forced_hat[0]}.webp', self.forced_hat[1])
return (f'{SITE_FULL_IMAGES}/i/hats/{self.forced_hat[0]}.webp', self.forced_hat[1])
if self.equipped_hat:
return (f'/i/hats/{self.equipped_hat.name}.webp', self.equipped_hat.name + ' - ' + self.equipped_hat.censored_description(v))
return (f'{SITE_FULL_IMAGES}/i/hats/{self.equipped_hat.name}.webp', self.equipped_hat.name + ' - ' + self.equipped_hat.censored_description(v))
return ('', '')
@ -792,7 +792,7 @@ class User(Base):
def banner_url(self):
if FEATURES['USERS_PROFILE_BANNER'] and self.bannerurl and self.can_see_my_shit:
return self.bannerurl
return f"/i/{SITE_NAME}/site_preview.webp?v=3009"
return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/site_preview.webp?v=3009"
@property
@lazy
@ -804,7 +804,7 @@ class User(Base):
if self.profileurl and self.can_see_my_shit:
if self.profileurl.startswith('/'): return SITE_FULL + self.profileurl
return self.profileurl
return f"{SITE_FULL}/i/default-profile-pic.webp?v=1008"
return f"{SITE_FULL_IMAGES}/i/default-profile-pic.webp?v=1008"
@lazy
def real_post_count(self, v):

View File

@ -286,7 +286,7 @@ def sanitize_settings_text(sanitized:Optional[str], max_length:Optional[int]=Non
chud_images = listdir("files/assets/images/chud")
chud_images = [f'\n\n{SITE_FULL}/i/chud/{f}' for f in chud_images]
chud_images = [f'\n\n{SITE_FULL_IMAGES}/i/chud/{f}' for f in chud_images]
chud_images.extend([':#trumpjaktalking:', ':#reposthorse:'])
def handle_youtube_links(url):
@ -404,7 +404,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_emojis=
tag["loading"] = "lazy"
tag["data-src"] = tag["src"]
tag["src"] = "/i/l.webp"
tag["src"] = f"{SITE_FULL_IMAGES}/i/l.webp"
tag['alt'] = tag["data-src"]
tag['class'] = "img"

View File

@ -396,7 +396,7 @@ def approve_hat(v, name):
ma = ModAction(
kind="approve_hat",
user_id=v.id,
_note=f'<a href="/i/hats/{name}.webp">{name}</a>'
_note=f'<a href="{SITE_FULL_IMAGES}/i/hats/{name}.webp">{name}</a>'
)
g.db.add(ma)
@ -547,7 +547,7 @@ def update_hat(v):
ma = ModAction(
kind="update_hat",
user_id=v.id,
_note=f'<a href="/i/hats/{name}.webp">{name}</a>'
_note=f'<a href="{SITE_FULL_IMAGES}/i/hats/{name}.webp">{name}</a>'
)
g.db.add(ma)
return render_template("admin/update_assets.html", v=v, msg=f"'{name}' updated successfully!", type="Hat")

View File

@ -40,7 +40,7 @@ def template_asset(ctx, asset_path):
@app.template_filter("asset_siteimg")
def template_asset_siteimg(asset_path):
# TODO: Add hashing for these using files.helpers.assetcache
return f'/i/{SITE_NAME}/{asset_path}?v=3010'
return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/{asset_path}?v=3010'
@app.template_filter("timestamp")
def timestamp(timestamp):
@ -144,5 +144,5 @@ def inject_constants():
"DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST, "BACKGROUND_CATEGORIES":BACKGROUND_CATEGORIES, "PAGE_SIZE":PAGE_SIZE, "TAGLINES":TAGLINES, "IS_FISTMAS":IS_FISTMAS, "get_alt_graph":get_alt_graph, "current_registered_users":current_registered_users,
"git_head":git_head, "max_days":max_days,
"BIO_FRIENDS_ENEMIES_LENGTH_LIMIT":BIO_FRIENDS_ENEMIES_LENGTH_LIMIT,
"IMMUNE_TO_AWARDS": IMMUNE_TO_AWARDS,
"IMMUNE_TO_AWARDS": IMMUNE_TO_AWARDS, "SITE_FULL_IMAGES": SITE_FULL_IMAGES
}

View File

@ -14,7 +14,7 @@
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="/i/{{SITE_NAME}}/badges/2{{user.patron}}.webp?v=1">
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{user.patron}}.webp?v=1">
</td>
</tr>
{% endfor %}

View File

@ -11,9 +11,9 @@
{% endif %}
<div class="font-weight-bold mt-4 mb-2">First step:</div>
<img loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()" alt="First step" style="height:30vh" src="/i/{{SITE_NAME}}/app-{{type}}-1.webp">
<img loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()" alt="First step" style="height:30vh" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/app-{{type}}-1.webp">
<div class="font-weight-bold mt-4 mb-2">Second step:</div>
<img loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()" alt="Second step" style="height:30vh" src="/i/{{SITE_NAME}}/app-{{type}}-2.webp">
<img loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()" alt="Second step" style="height:30vh" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/app-{{type}}-2.webp">
</div>
{% endblock %}

View File

@ -34,7 +34,7 @@
{% if p.award_count("ricardo", v) %}
{% for i in range(min(p.award_count("ricardo", v), 3)) %}
<div class="ricardo ricardo{{i+1}}">
<img loading="lazy" src="/i/ricardo{{i+1}}.webp">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/ricardo{{i+1}}.webp">
</div>
{% endfor %}
{% endif %}

View File

@ -42,13 +42,13 @@
<input type="radio" class="btn-check" name="wagerCurrency" autocomplete="off" id="wagerCoins"
value="coin" checked>
<label for="wagerCoins" class="btn btn-primary border-0 pl-0">
<img id="wagerCoinsImg" loading="lazy" src="/i/rDrama/coins.webp?v=3009" alt="coin" data-bs-toggle="tooltip"
<img id="wagerCoinsImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?v=3009" alt="coin" data-bs-toggle="tooltip"
data-bs-placement="bottom" title="Coin">
</label>
<input type="radio" class="btn-check ml-2" name="wagerCurrency" autocomplete="off" id="wagerMarseybux"
value="marseybux">
<label for="wagerMarseybux" class="btn btn-primary border-0 pl-0">
<img id="wagerMarseybuxImg" loading="lazy" src="/i/marseybux.webp?v=2000" alt="marseybux" data-bs-toggle="tooltip"
<img id="wagerMarseybuxImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?v=2000" alt="marseybux" data-bs-toggle="tooltip"
data-bs-placement="bottom" title="Marseybux">
</label>
</div>

View File

@ -9,6 +9,6 @@
<div style="text-align: right; margin-bottom: 3rem;">
<h2>…but were here for you. Youve been checked into Rehab.</h2>
</div>
<img loading="lazy" src="/i/rDrama/brit.webp" style="text-align: center">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/brit.webp" style="text-align: center">
</div>
{% endblock %}

View File

@ -19,17 +19,17 @@ Bets
<div class="roulette-bet-summary">
<div class="roulette-bet-summary--heading">
<div class="roulette-poker-chip">
<img loading="lazy" src="/i/pokerchip.webp" width="40" height="40">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/pokerchip.webp" width="40" height="40">
<img loading="lazy" src="/e/marseycodecellove.webp" width="40" height="40">
</div>
<p>111 is betting 4 and 4:
</p>
</div>
<ul class="roulette-bet-summary--list">
<li>2 <img loading="lazy" src="/i/rDrama/coins.webp?v=3009" alt="coin" width="32" data-bs-toggle="tooltip"
<li>2 <img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?v=3009" alt="coin" width="32" data-bs-toggle="tooltip"
data-bs-placement="bottom" title="Coin"> that
the number will be black.</li>
<li>2 <img loading="lazy" src="/i/rDrama/coins.webp?v=3009" alt="coin" width="32" data-bs-toggle="tooltip"
<li>2 <img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?v=3009" alt="coin" width="32" data-bs-toggle="tooltip"
data-bs-placement="bottom" title="Coin"> that
the number will be even.</li>
</ul>

View File

@ -9,13 +9,13 @@
<div class="slots_reels">
<div class="slots_reel">
<img loading="lazy" src="/i/rDrama/coins.webp?v=3009" alt="coin">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?v=3009" alt="coin">
</div>
<div class="slots_reel">
<img loading="lazy" src="/i/rDrama/coins.webp?v=3009" alt="coin">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?v=3009" alt="coin">
</div>
<div class="slots_reel">
<img loading="lazy" src="/i/rDrama/coins.webp?v=3009" alt="coin">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?v=3009" alt="coin">
</div>
</div>
{% endblock %}

View File

@ -159,11 +159,11 @@
<span {% if c.distinguish_level %}class="mod {% if SITE_NAME == 'rDrama' %}mod-rdrama{% endif %}"{% endif %}>👻</span>
{% else %}
{% if FEATURES['PATRON_ICONS'] and c.author.patron %}
<img loading="lazy" src="/i/{{SITE_NAME}}/badges/2{{c.author.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{c.author.patron_tooltip}}" alt="{{c.author.patron_tooltip}}">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{c.author.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{c.author.patron_tooltip}}" alt="{{c.author.patron_tooltip}}">
{% endif %}
{% if FEATURES['HOUSES'] and c.author.house %}
<img loading="lazy" src="/i/{{SITE_NAME}}/houses/{{c.author.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{c.author.house}}" alt="House {{c.author.house}}">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/houses/{{c.author.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{c.author.house}}" alt="House {{c.author.house}}">
{% endif %}
{% if c.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if c.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{c.author.verified}}"></i>
@ -207,17 +207,17 @@
{% if c.treasure_amount and c.treasure_amount != '0' %}
{% if c.treasure_amount.startswith('l') %}
<span class="d-inline-block">
<img class="treasure" loading="lazy" alt="treasure" src="/i/treasure_tickets.webp" width="20" height="20">
<img class="treasure" loading="lazy" alt="treasure" src="{{SITE_FULL_IMAGES}}/i/treasure_tickets.webp" width="20" height="20">
<em>Found {{c.treasure_amount.replace('l', '')}} Lottershe Tickets!</em>
</span>
{% elif '-' in c.treasure_amount %}
<span class="d-inline-block">
<img class="treasure" loading="lazy" alt="treasure" src="/i/treasure_mimic.webp" width="20" height="20">
<img class="treasure" loading="lazy" alt="treasure" src="{{SITE_FULL_IMAGES}}/i/treasure_mimic.webp" width="20" height="20">
<em>A Mimic Ate {{c.treasure_amount.replace('-', '')}} Coins!</em>
</span>
{% else %}
<span class="d-inline-block">
<img class="treasure" loading="lazy" alt="treasure" src="/i/treasure_coins.webp" width="20" height="20">
<img class="treasure" loading="lazy" alt="treasure" src="{{SITE_FULL_IMAGES}}/i/treasure_coins.webp" width="20" height="20">
<em>Found {{c.treasure_amount}} Coins!</em>
</span>
{% endif %}

View File

@ -9,7 +9,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/i/WPD/site_preview.webp?v=3009">
<meta name="thumbnail" content="https://i.watchpeopledie.tv/i/WPD/site_preview.webp?v=3009">
<link rel="icon" type="image/webp" href="/icon.webp?v=1">
@ -57,20 +57,20 @@
</head>
<body id="error-404">
<a href="/i/WPD/cached.webp?v=3009">
<img class="site-banner" alt="site banner" src="/i/WPD/cached.webp?v=3009" width="100%">
<a href="https://i.watchpeopledie.tv/i/WPD/cached.webp?v=3009">
<img class="site-banner" alt="site banner" src="https://i.watchpeopledie.tv/i/WPD/cached.webp?v=3009" width="100%">
</a>
<nav class="shadow-md fixed-top">
<div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid p-0">
<a href="/" class="navbar-brand mr-auto">
<img loading="lazy" id="header--icon" alt="header icon" src="/i/WPD/headericon.webp?v=3009">
<img loading="lazy" id="header--icon" alt="header icon" src="https://i.watchpeopledie.tv/i/WPD/headericon.webp?v=3009">
</a>
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="/i/WPD/logo.webp?v=3009" width="70">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="https://i.watchpeopledie.tv/i/WPD/logo.webp?v=3009" width="70">
</a>
</div>
</div>

View File

@ -9,7 +9,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/i/WPD/site_preview.webp?v=3009">
<meta name="thumbnail" content="https://i.watchpeopledie.tv/i/WPD/site_preview.webp?v=3009">
<link rel="icon" type="image/webp" href="/icon.webp?v=1">
@ -57,20 +57,20 @@
</head>
<body id="error-502">
<a href="/i/WPD/cached.webp?v=3009">
<img class="site-banner" alt="site banner" src="/i/WPD/cached.webp?v=3009" width="100%">
<a href="https://i.watchpeopledie.tv/i/WPD/cached.webp?v=3009">
<img class="site-banner" alt="site banner" src="https://i.watchpeopledie.tv/i/WPD/cached.webp?v=3009" width="100%">
</a>
<nav class="shadow-md fixed-top">
<div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid p-0">
<a href="/" class="navbar-brand mr-auto">
<img loading="lazy" id="header--icon" alt="header icon" src="/i/WPD/headericon.webp?v=3009">
<img loading="lazy" id="header--icon" alt="header icon" src="https://i.watchpeopledie.tv/i/WPD/headericon.webp?v=3009">
</a>
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="/i/WPD/logo.webp?v=3009" width="70">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="https://i.watchpeopledie.tv/i/WPD/logo.webp?v=3009" width="70">
</a>
</div>
</div>

View File

@ -9,7 +9,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/i/rDrama/site_preview.webp?v=3009">
<meta name="thumbnail" content="https://i.rdrama.net/i/rDrama/site_preview.webp?v=3009">
<link rel="icon" type="image/webp" href="/icon.webp?v=1">
@ -58,19 +58,19 @@
<body id="error-404">
<a rel="nofollow noopener" href="https://secure.transequality.org/site/Donation2?df_id=1480">
<img class="site-banner" alt="site banner" src="/i/rDrama/cached.webp?v=3009" width="100%">
<img class="site-banner" alt="site banner" src="https://i.rdrama.net/i/rDrama/cached.webp?v=3009" width="100%">
</a>
<nav class="shadow-md fixed-top">
<div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid p-0">
<a href="/" class="navbar-brand mr-auto">
<img loading="lazy" id="header--icon" alt="header icon" src="/i/rDrama/headericon.webp?v=3009">
<img loading="lazy" id="header--icon" alt="header icon" src="https://i.rdrama.net/i/rDrama/headericon.webp?v=3009">
</a>
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="/i/rDrama/logo.webp?v=3009" width="70">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="https://i.rdrama.net/i/rDrama/logo.webp?v=3009" width="70">
</a>
</div>
</div>

View File

@ -9,7 +9,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/i/rDrama/site_preview.webp?v=3009">
<meta name="thumbnail" content="https://i.rdrama.net/i/rDrama/site_preview.webp?v=3009">
<link rel="icon" type="image/webp" href="/icon.webp?v=1">
@ -58,19 +58,19 @@
<body id="error-502">
<a rel="nofollow noopener" href="https://secure.transequality.org/site/Donation2?df_id=1480">
<img class="site-banner" alt="site banner" src="/i/rDrama/cached.webp?v=3009" width="100%">
<img class="site-banner" alt="site banner" src="https://i.rdrama.net/i/rDrama/cached.webp?v=3009" width="100%">
</a>
<nav class="shadow-md fixed-top">
<div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid p-0">
<a href="/" class="navbar-brand mr-auto">
<img loading="lazy" id="header--icon" alt="header icon" src="/i/rDrama/headericon.webp?v=3009">
<img loading="lazy" id="header--icon" alt="header icon" src="https://i.rdrama.net/i/rDrama/headericon.webp?v=3009">
</a>
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="/i/rDrama/logo.webp?v=3009" width="70">
<img loading="lazy" class="ml-1" id="logo" alt="logo" src="https://i.rdrama.net/i/rDrama/logo.webp?v=3009" width="70">
</a>
</div>
</div>

View File

@ -100,12 +100,12 @@ Text 2
<tr>
<td>Pat Emojis</td>
<td>:marseylovepat:</td>
<td><span alt=":marseylovepat:" data-bs-toggle="tooltip" title=":marseylovepat:"><img loading="lazy" src="/i/hand.webp"><img alt=":marseylovepat:" b loading="lazy" pat src="/e/marseylove.webp"></span></td>
<td><span alt=":marseylovepat:" data-bs-toggle="tooltip" title=":marseylovepat:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/hand.webp"><img alt=":marseylovepat:" b loading="lazy" pat src="/e/marseylove.webp"></span></td>
</tr>
<tr>
<td>Pat User</td>
<td>:@snappypat:</td>
<td><span alt=":@snappypat:" data-bs-toggle="tooltip" title=":@snappypat:"><img loading="lazy" src="/i/hand.webp"><img alt=":@snappypat:" b loading="lazy" pat src="/pp/3"></span></td>
<td><span alt=":@snappypat:" data-bs-toggle="tooltip" title=":@snappypat:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/hand.webp"><img alt=":@snappypat:" b loading="lazy" pat src="/pp/3"></span></td>
</tr>
<tr>
<td>Random Marsey</td>

View File

@ -21,7 +21,7 @@
</div>
<header class="container pb-1 text-center">
<img loading="lazy" id="hats-banner" class="mt-5" alt="hats banner" src="/i/hats.webp?v=1" width="50%">
<img loading="lazy" id="hats-banner" class="mt-5" alt="hats banner" src="{{SITE_FULL_IMAGES}}/i/hats.webp?v=1" width="50%">
<h5 class="mt-4">Number of hats you bought: {{v.num_of_owned_hats}}</h5>
<h5 class="mt-4">Number of hats you designed: {{v.num_of_designed_hats}}</h5>
<h5 class="mt-4">Coins you spent on hats: {{"{:,}".format(v.coins_spent_on_hats)}}</h5>
@ -56,7 +56,7 @@
<td>
<div class="profile-pic-75-wrapper mt-4">
<img loading="lazy" alt="avatar" src="{{v.profile_url}}" class="profile-pic-75">
<img loading="lazy" alt="{{hat.name}}" class="profile-pic-75-hat" src="/i/hats/{{hat.name}}.webp?h=7">
<img loading="lazy" alt="{{hat.name}}" class="profile-pic-75-hat" src="{{SITE_FULL_IMAGES}}/i/hats/{{hat.name}}.webp?h=7">
</div>
</td>
<td>{{hat.name}}</td>

View File

@ -218,7 +218,7 @@
<div style="color: #{{v.name_color}}" class="text-small font-weight-bold"><span id="header--username" {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.user_name}}</span></div>
<div class="header--currency"><img loading="lazy" alt="coins" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" src="{{'coins.webp' | asset_siteimg}}" title="Coins"><span id="user-coins-amount">{{v.coins}}</span>{% if not FEATURES['MARSEYBUX'] %} Coin{{macros.plural(v.coins)}}{% endif %}</div>
{% if FEATURES['MARSEYBUX'] %}
<div class="header--currency"><img loading="lazy" alt="marseybux" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" src="/i/marseybux.webp?v=2000" title="Marseybux"><span id="user-bux-amount">{{v.marseybux}}</span></div>
<div class="header--currency"><img loading="lazy" alt="marseybux" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?v=2000" title="Marseybux"><span id="user-bux-amount">{{v.marseybux}}</span></div>
{% endif %}
</div>
</div>
@ -337,4 +337,4 @@
<div id="formkey" class="d-none">{{v|formkey}}</div>
{% endif %}
<link rel="preload" as="image" href="/i/l.webp">
<link rel="preload" as="image" href="{{SITE_FULL_IMAGES}}/i/l.webp">

View File

@ -5,10 +5,10 @@
<div style="margin-top: 5rem">
<div class="lottery-page--wrapper">
<div class="lottery-page--image">
<img loading="lazy" src="/i/{{SITE_NAME}}/lottery.webp?v=2000">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/lottery.webp?v=2000">
<img
id="lotteryTicketPulled"
src="/i/{{SITE_NAME}}/lottery_active.webp?v=2000"
src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/lottery_active.webp?v=2000"
style="display: none"
>
</div>

View File

@ -33,7 +33,7 @@
{% if FEATURES['ASSET_SUBMISSIONS'] %}
<td>
{% if marsey.og %}
<a href="/asset_submissions/marseys/original/{{marsey.og}}">{{marsey.og}}</a>
<a href="{SITE_FULL_IMAGES}/asset_submissions/marseys/original/{{marsey.og}}">{{marsey.og}}</a>
{% endif %}
</td>
{% endif %}

View File

@ -25,7 +25,7 @@
</div>
<header class="container pb-1 text-center">
<img loading="lazy" id="shop-banner" alt="shop banner" src="/i/shop.webp">
<img loading="lazy" id="shop-banner" alt="shop banner" src="{{SITE_FULL_IMAGES}}/i/shop.webp">
<h5 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
<h5 class="mt-4">Total sales: {{"{:,}".format(sales)}} coins</h5>
<h5 class="mt-4">Coins spent by you: {{"{:,}".format(v.coins_spent)}} coins</h5>

View File

@ -16,8 +16,8 @@
{% if request.path != '/sidebar' %}
{% if v and (v.is_banned or v.agendaposter) %}
<a href="/i/{{SITE_NAME}}/sidebar2.webp">
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="/i/{{SITE_NAME}}/sidebar2.webp" width=100%>
<a href="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/sidebar2.webp">
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/sidebar2.webp" width=100%>
</a>
{% elif not (sub and sub.name == 'chudrama' and v and not v.can_see_chudrama) %}
<a href="{{image}}">

View File

@ -69,7 +69,7 @@
<input hidden name="formkey" value="{{v|formkey}}">
<div><label class="mt-3">Image</label></div>
<img loading="lazy" src="/asset_submissions/marseys/{{emoji.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/asset_submissions/marseys/{{emoji.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
<div><label class="mt-3" for="{{emoji.name}}-kind">Kind</label></div>
<div class="input-group mb2">

View File

@ -24,7 +24,7 @@
</div>
<div id="hat-design-reference-block" class="mt-3">
<a href="/i/hat-template.png" class="font-weight-bold">Hat Template</a> &mdash; 100x130px (do not resize), circle is profile picture, do not include circle in final submission.
<a href="{{SITE_FULL_IMAGES}}/i/hat-template.png" class="font-weight-bold">Hat Template</a> &mdash; 100x130px (do not resize), circle is profile picture, do not include circle in final submission.
</div>
<label class="mt-3" for="name">Hat Name</label>
@ -60,11 +60,11 @@
<input hidden name="formkey" value="{{v|formkey}}">
<div><label class="mt-3">Image</label></div>
<img loading="lazy" src="/asset_submissions/hats/{{hat.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/asset_submissions/hats/{{hat.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
<div class="profile-pic-100-wrapper ml-4 mt-4">
<img loading="lazy" alt="avatar" src="{{v.profile_url}}" class="profile-pic-100">
<img loading="lazy" class="profile-pic-100-hat" src="/asset_submissions/hats/{{hat.name}}.webp?s={{range(1, 10000000)|random}}">
<img loading="lazy" class="profile-pic-100-hat" src="{{SITE_FULL_IMAGES}}/asset_submissions/hats/{{hat.name}}.webp?s={{range(1, 10000000)|random}}">
</div>
<div><label class="mt-3" for="{{hat.name}}-submitter">Submitter</label></div>

View File

@ -32,11 +32,11 @@
{% endif %}
{% if FEATURES['PATRON_ICONS'] and u.patron %}
<img loading="lazy" class="ml-3" src="/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
<img loading="lazy" class="ml-3" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
{% endif %}
{% if FEATURES['HOUSES'] and u.house %}
<img loading="lazy" class="ml-3" id="profile--house" src="/i/{{SITE_NAME}}/houses/{{u.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
<img loading="lazy" class="ml-3" id="profile--house" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/houses/{{u.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
{% endif %}
{% if u.verified %}
@ -73,7 +73,7 @@
{% if FEATURES['MARSEYBUX'] %}
<span id="profile-bux-amount">{{u.marseybux}}</span>
<img loading="lazy" alt="marseybux" class="ml-1 mb-1 mr-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="20" width="46" src="/i/marseybux.webp?v=2000">
<img loading="lazy" alt="marseybux" class="ml-1 mb-1 mr-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="20" width="46" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?v=2000">
{% endif %}
{% if PERMS['USER_FOLLOWS_VISIBLE'] == 0 or (v and v.admin_level >= PERMS['USER_FOLLOWS_VISIBLE']) -%}
@ -294,11 +294,11 @@
{% endif %}
{% if FEATURES['PATRON_ICONS'] and u.patron %}
<img loading="lazy" class="ml-2" src="/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
<img loading="lazy" class="ml-2" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{u.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.patron_tooltip}}" alt="{{u.patron_tooltip}}">
{% endif %}
{% if FEATURES['HOUSES'] and u.house %}
<img loading="lazy" class="ml-2" id="profile-mobile--house" src="/i/{{SITE_NAME}}/houses/{{u.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
<img loading="lazy" class="ml-2" id="profile-mobile--house" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/houses/{{u.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
{% endif %}
{% if u.verified %}
@ -334,7 +334,7 @@
{% if FEATURES['MARSEYBUX'] %}
<span id="profile-bux-amount-mobile" class="font-weight-bold">{{u.marseybux}}</span>
<img loading="lazy" alt="marseybux" class="ml-1 mb-1 mr-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="15" width="35" src="/i/marseybux.webp?v=2000">
<img loading="lazy" alt="marseybux" class="ml-1 mb-1 mr-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="15" width="35" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?v=2000">
{% endif %}
{% if PERMS['USER_FOLLOWS_VISIBLE'] == 0 or (v and v.admin_level >= PERMS['USER_FOLLOWS_VISIBLE']) -%}

View File

@ -77,11 +77,11 @@
<span {% if p.distinguish_level %}class="mod {% if SITE_NAME == 'rDrama' %}mod-rdrama{% endif %}"{% endif %}>👻</span>
{% else %}
{% if FEATURES['PATRON_ICONS'] and p.author.patron %}
<img loading="lazy" src="/i/{{SITE_NAME}}/badges/2{{p.author.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.patron_tooltip}}" alt="{{p.author.patron_tooltip}}">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/badges/2{{p.author.patron}}.webp?v=1" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.patron_tooltip}}" alt="{{p.author.patron_tooltip}}">
{% endif %}
{% if FEATURES['HOUSES'] and p.author.house %}
<img loading="lazy" src="/i/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=2000" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
{% endif %}
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>