def tags(tag=None): if not tag: from core.database import get_tag_count return render_template(f'{session["view_mode"]}/tags.html', tag_count=get_tag_count()) else: from routes import tag as run return run.route(tag)
def user(viewuser=None): from routes import user as run return run.route(viewuser)
def search(): from routes import search as run return run.route()
def submit(post_id=None): from routes import submit as run return run.route(post_id)
def invite(code=None): from routes import invite as run return run.route(code)
def forgot(): from routes import forgot as run return run.route()
def index(): from routes import index as run return run.route()
def login(): from routes import login as run return run.route()
def remove(post_id=0): from routes import post as run return run.route('delete', post_id)
def change_password(): from routes import password as run return run.route()
def report(post_id=0): from routes import post as run return run.route('report', post_id)
def upvote(post_id=0): from routes import post as run return run.route('upvote', post_id)
def subscribe(viewuser=None): from routes import rss as run return run.route(viewuser)
def top(): from routes import toprecent as run from core.database import get_all_top_posts return run.route(get_all_top_posts(), 'top')
def recent(): from routes import toprecent as run from core.database import get_all_recent_updated_posts return run.route(get_all_recent_updated_posts(), 'recent')