diff --git a/files/routes/front.py b/files/routes/front.py index f06148309..bbcb8fbb0 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -6,33 +6,6 @@ from files.classes.submission import Submission defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "day").strip() -class Post(object): - - def __init__(self, my_dict): - - for key in my_dict: - setattr(self, key, my_dict[key]) - -@app.get("/marseyverse") -@auth_desired -def marseyverse(v): - count = 0 - drama = requests.get("https://rdrama.net/", headers={"Authorization": "sex"}).json()["data"] - pcm = requests.get("https://pcmemes.net/", headers={"Authorization": "sex"}).json()["data"] - gigachad = requests.get("https://gigachadlife.com/", headers={"Authorization": "sex"}).json()["data"] - weebzone = requests.get("https://weebzone.xyz/", headers={"Authorization": "sex"}).json()["data"] - - listing = [] - - while count < 100: - for site in [drama,pcm,gigachad,weebzone]: - try: post = site[count] - except: continue - listing.append(Post(post)) - count += 1 - - return render_template("marseyverse.html", v=v, listing=listing) - @app.get("/post/") def slash_post(): return redirect("/") diff --git a/files/templates/marseyverse.html b/files/templates/marseyverse.html deleted file mode 100644 index c81798a7c..000000000 --- a/files/templates/marseyverse.html +++ /dev/null @@ -1,468 +0,0 @@ -{% extends "default.html" %} - -{% block content %} - -
- -
- -
- - {% for p in listing %} - - {% set ups=p.upvotes %} - {% set downs=p.downvotes %} - {% set score=ups-downs %} - - {% set voted=-2 %} - - -
- -
- - - {% if not postembed %} -
- {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - - {% if voted==1 %} -
- {% endif %} - - {{score}} - - {% if voted==-1 %} -
- {% endif %} - - {% elif v %} - -
- - {{score}} - -
- - {% else %} - -
- - {{score}} - -
- - - {% endif %} - -
- {% endif %} - -
- -
- - {% if not p.url %} - - - - {% elif p.is_image %} - - - - {% else %} - - - - {% endif %} - -
- - -
- -
- - - -
- {{p.title | safe}} -
- - {% if p.thumb_url %} -
-
- post image -
-
- {% endif %} - -
- -
-
-
- - {% if p.is_image and (not v or v.cardview) %} -
- - Unable to load image - -
- {% endif %} - - {% if p.body %} -
- {{p.body | safe}} -
- {% endif %} - - - - - - -
- - {% if p.active_flags %} -
- Reported by: -

-					
    - {% for f in p.ordered_flags %} -
  • {{f.user.username}}{% if f.reason %}: {{f.reason | safe}}{% endif %} {% if v.admin_level==6 %}[remove]{% endif %}
  • - {% endfor %} -
-
- {% endif %} - - {% else %} - - {% if request.path.endswith('/admin/queue') %} - -
-
-
-
This queue is empty. (That's a good thing.)
-
-
-
- - - {% elif u %} - {% if v and v.id == u.id %} -
-
-
- - - - -

You haven't {% if "saved" in request.full_path %}saved{% else %}made{% endif %} a post yet

-

Your {% if "saved" in request.full_path %}saved posts{% else %}posting history{% endif %} will show here.

- {% if "saved" not in request.full_path %}Create a post{% endif %} -
-
-
- - - {% else %} -
-
-
- - - - -

@{{u.username}} hasn't made a post yet

-

Their posting history will show here.

-
-							
-						
-
-
-
- {% endif %} - - {% else %} -
-
-
- - - - -

There are no posts here.

-

But the magic gnomes tell us there will be (eventually).

-
-
-
- - - {% endif %} - - {% endfor %} - - {% include "delete_post_modal.html" %} -
-
-
- -{% endblock %} \ No newline at end of file