remotes/1693045480750635534/spooky-22
Aevann1 2021-08-23 19:48:55 +02:00
parent b46ce78eac
commit cfeb786008
15 changed files with 36 additions and 50 deletions

View File

@ -23,7 +23,6 @@ from files.helpers.discord import add_role
@app.get("/admin/shadowbanned")
@auth_required
def shadowbanned(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not (v and v.admin_level == 6): abort(404)
users = [x for x in g.db.query(User).filter_by(shadowbanned = True).all()]
return render_template("banned.html", v=v, users=users)
@ -32,7 +31,6 @@ def shadowbanned(v):
@app.get("/admin/agendaposters")
@auth_required
def agendaposters(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not (v and v.admin_level == 6): abort(404)
users = [x for x in g.db.query(User).filter_by(agendaposter = True).all()]
return render_template("banned.html", v=v, users=users)

View File

@ -28,7 +28,7 @@ beams_client = PushNotifications(
@auth_desired
def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/comment/{cid}")

View File

@ -14,7 +14,7 @@ def slash_post():
@auth_required
def notifications(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
page = int(request.args.get('page', 1))
all_ = request.args.get('all', False)
@ -190,7 +190,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
@auth_desired
def front_all(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not v and request.path == "/": return redirect("/logged_out")
@ -300,7 +300,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all", **kwargs):
@app.get("/changelog")
@auth_desired
def changelog(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
page = int(request.args.get("page") or 1)
page = max(page, 1)
@ -330,7 +330,7 @@ def changelog(v):
@app.get("/random")
@auth_desired
def random_post(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
@ -404,7 +404,7 @@ def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all", **kwargs):
@app.get("/comments")
@auth_desired
def all_comments(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
page = int(request.args.get("page", 1))

View File

@ -39,7 +39,7 @@ def publish(pid, v):
@app.get("/submit")
@auth_required
def submit_get(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("submit.html",
v=v)
@ -51,7 +51,7 @@ def submit_get(v):
@auth_desired
def post_id(pid, anything=None, v=None):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/post/{pid}")

View File

@ -196,7 +196,7 @@ def searchcommentlisting(criteria, v=None, page=1, t="None", sort="top"):
@app.get("/search/posts")
@auth_desired
def searchposts(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
query = request.args.get("q", '').strip()
@ -237,7 +237,7 @@ def searchposts(v):
@app.get("/search/comments")
@auth_desired
def searchcomments(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
query = request.args.get("q", '').strip()
@ -262,7 +262,7 @@ def searchcomments(v):
@app.get("/search/users")
@auth_desired
def searchusers(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
query = request.args.get("q", '').strip()

View File

@ -479,7 +479,7 @@ def update_announcement(v):
@app.get("/settings/blocks")
@auth_required
def settings_blockedpage(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
#users=[x.target for x in v.blocked]
@ -489,7 +489,7 @@ def settings_blockedpage(v):
@app.get("/settings/css")
@auth_required
def settings_css_get(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("settings_css.html", v=v)
@ -508,7 +508,7 @@ def settings_css(v):
@app.get("/settings/profilecss")
@auth_required
def settings_profilecss_get(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if v.coins < 1000 and not v.patron: return f"You must have +1000 {COINS_NAME} or be a patron to set profile css."
return render_template("settings_profilecss.html", v=v)
@ -585,7 +585,7 @@ def settings_unblock_user(v):
@app.get("/settings/apps")
@auth_required
def settings_apps(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("settings_apps.html", v=v)
@ -608,7 +608,7 @@ def settings_remove_discord(v):
@app.get("/settings/content")
@auth_required
def settings_content_get(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("settings_filters.html", v=v)

View File

@ -43,7 +43,7 @@ def participation_stats(v):
@app.get("/paypigs")
@auth_desired
def patrons(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
users = g.db.query(User).options(lazyload('*')).filter(User.patron > 0).order_by(User.patron.desc()).all()
return render_template("patrons.html", v=v, users=users)
@ -108,7 +108,7 @@ def api(v):
@app.get("/contact")
@auth_desired
def contact(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("contact.html", v=v)
@app.post("/contact")
@ -151,7 +151,7 @@ def robots_txt():
@app.get("/settings")
@auth_required
def settings(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return redirect("/settings/profile")
@ -159,7 +159,7 @@ def settings(v):
@app.get("/settings/profile")
@auth_required
def settings_profile(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("settings_profile.html",
v=v)
@ -168,7 +168,7 @@ def settings_profile(v):
@app.get("/titles")
@auth_desired
def titles(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
titles = [x for x in g.db.query(Title).order_by(text("id asc")).all()]
return render_template("/titles.html",
@ -178,7 +178,7 @@ def titles(v):
@app.get("/badges")
@auth_desired
def badges(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
badges = g.db.query(BadgeDef).all()
return render_template("badges.html", v=v, badges=badges)
@ -186,7 +186,7 @@ def badges(v):
@app.get("/blocks")
@auth_desired
def blocks(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
blocks=g.db.query(UserBlock).all()
users = []
@ -200,7 +200,7 @@ def blocks(v):
@app.get("/banned")
@auth_desired
def banned(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
users = [x for x in g.db.query(User).filter(User.is_banned > 0, User.unban_utc == 0).all()]
return render_template("banned.html", v=v, users=users)
@ -208,7 +208,7 @@ def banned(v):
@app.get("/formatting")
@auth_desired
def formatting(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("formatting.html", v=v)
@ -228,7 +228,7 @@ def serviceworker():
@app.get("/settings/security")
@auth_required
def settings_security(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
return render_template("settings_security.html",
v=v,

View File

@ -250,7 +250,7 @@ def redditor_moment_redirect(username):
# @app.get("/rentoids")
# @auth_desired
# def rentoids(v):
# if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
#
# users = g.db.query(User).filter(User.rent_utc > 0).all()
# return render_template("rentoids.html", v=v, users=users)
@ -258,7 +258,7 @@ def redditor_moment_redirect(username):
@app.get("/@<username>/followers")
@auth_required
def followers(username, v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
u = get_user(username, v=v)
users = [x.user for x in u.followers]
@ -276,7 +276,7 @@ def visitors(v):
@app.get("/logged_out/@<username>")
@auth_desired
def u_username(username, v=None):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/@{username}")
@ -397,7 +397,7 @@ def u_username(username, v=None):
@app.get("/logged_out/@<username>/comments")
@auth_desired
def u_username_comments(username, v=None):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/@{username}/comments")

View File

@ -8,7 +8,7 @@ from files.__main__ import app
@app.get("/votes")
@auth_desired
def admin_vote_info_get(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
link = request.args.get("link")
if not link: return render_template("votes.html", v=v)

View File

@ -148,7 +148,7 @@
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;">
{% for f in c.ordered_flags %}
<li><a style="font-weight:bold" href="{{f.user.url}}">@{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %}</li>
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %}</li>
{% endfor %}
</ul>
</div>

View File

@ -1034,7 +1034,7 @@
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" style="overflow-x: hidden; {% if v and v.background %} background:url(/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %}">
<a href="{% if 'rdrama' in request.host %}https://secure.transequality.org/site/Donation2?df_id=1480{% else %}/{% endif %}"><img src="/assets/images/{{'SITE_NAME' | app_config}}/{% if v %}banner.gif{% else %}cached.gif{% endif %}" style="padding:4px;" width="100%"></a>
<a href="{% if 'rdrama' in request.host %}https://secure.transequality.org/site/Donation2?df_id=1480{% else %}/{% endif %}"><img src="/assets/images/{{'SITE_NAME' | app_config}}/{% if v %}banner.gif{% else %}cached.gif{% endif %}" style="padding:4px 0 0 0;" width="100%"></a>
{% include "header.html" %}

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<img class="center" src="/assets/images/seized.gif" style="
display: block;
margin-left: auto;
margin-right: auto;
width: 70%;">
</body>
</html>

View File

@ -241,7 +241,7 @@
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;">
{% for f in p.ordered_flags %}
<li><a style="font-weight:bold" href="{{f.user.url}}">@{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %}</li>
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %}</li>
{% endfor %}
</ul>
</div>

View File

@ -382,7 +382,7 @@
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;">
{% for f in p.ordered_flags %}
<li><a style="font-weight:bold" href="{{f.user.url}}">@{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %}</li>
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.reason | safe}}{% endif %}</li>
{% endfor %}
</ul>
</div>

View File

@ -680,9 +680,7 @@ Now, if I did end up in prison somehow, my philosophy would still hold true. Go
Son, you have to believe in your own skill set and understand it will take you far. Ive spent years honing my Nazi punching skills and Im unstoppable.
I hope youve learned a little something today.
{[para]}
fuck off, carp
{[para]}
s{[para]}
FUCK OFF AND KYS PATHETIC FAGGOT, YOUR WORTHLESS BOT WAS THE FIRST THING I HAD TO BLOCK ON THIS SITE AND NOW YOU'RE THE SECOND MOTHER RAPING PIECE OF TRASH AND WASTE OF OXYGEN FUCKING DIE DIE DIE PIECE OF SHIT RETARD THAT I NOW ALSO HAVE TO BLOCK.
YOU DON'T DESERVE LIFE.