dfdMerge branch 'frost' of https://github.com/Aevann1/Drama into frost

remotes/1693045480750635534/spooky-22
Aevann1 2022-03-17 15:29:41 +00:00
commit 46fe881c44
2 changed files with 6 additions and 1 deletions

View File

@ -890,6 +890,11 @@ def remove_follow(username, v):
@limiter.exempt
@auth_desired
def user_profile_uid(v, id):
try: id = int(id)
except:
try: id = int(id, 36)
except: abort(404)
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
if v and request.path.startswith('/logged_out'): v = None

View File

@ -189,7 +189,7 @@
{% endif %}
<div class="custom-control custom-checkbox">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="ghost" name="ghost">
<input onchange='draft(this);' autocomplete="off" type="checkbox" class="custom-control-input" id="ghost" name="ghost">
<label class="custom-control-label" for="ghost">Ghost Thread</label>
</div>