forked from rDrama/rDrama
parent
8b74d907c6
commit
f4a4b5f7be
|
@ -82,9 +82,6 @@ def _special_leaderboard_get():
|
|||
@app.get('/special/worldcup2022/leaderboard')
|
||||
@auth_required
|
||||
def get_leaderboard(v):
|
||||
if SITE_NAME != 'rDrama':
|
||||
abort(404)
|
||||
|
||||
result = _special_leaderboard_get()
|
||||
if g.is_api_or_xhr: return result
|
||||
users = get_accounts_dict([r[0] for r in result],
|
||||
|
|
|
@ -43,9 +43,6 @@ def reddit_post(subreddit, v, path):
|
|||
@auth_required
|
||||
def marseys(v:User):
|
||||
|
||||
if SITE_NAME != 'rDrama':
|
||||
abort(404)
|
||||
|
||||
marseys = get_marseys(g.db)
|
||||
authors = get_accounts_dict([m.author_id for m in marseys], v=v, graceful=True, include_shadowbanned=False)
|
||||
original = os.listdir("/asset_submissions/marseys/original")
|
||||
|
@ -201,9 +198,6 @@ def log_item(id, v):
|
|||
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
||||
@auth_required
|
||||
def static_megathread_index(v:User):
|
||||
if SITE_NAME != 'rDrama':
|
||||
abort(404)
|
||||
|
||||
return render_template("megathread_index.html", v=v)
|
||||
|
||||
@app.get("/api")
|
||||
|
|
|
@ -1234,9 +1234,6 @@ def toggle_pins(sort):
|
|||
|
||||
@app.get("/toggle_holes")
|
||||
def toggle_holes():
|
||||
if SITE_NAME == 'WPD':
|
||||
abort(404)
|
||||
|
||||
holes = session.get('holes', True)
|
||||
session["holes"] = not holes
|
||||
|
||||
|
|
Loading…
Reference in New Issue