diff --git a/files/assets/css/main.css b/files/assets/css/main.css index ef6cc1bf6a..f2d974aecc 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5569,15 +5569,20 @@ audio, video { font-size: 0.95rem; } -#sidebar-wpd--flairs { +.sidebar-wpd--flairs { display: grid; align-items: center; - grid-template-columns: repeat(3, 1fr); - margin-bottom: 2rem; grid-gap: 1px; } -#sidebar-wpd--flairs a { +.sidebar-wpd--flairs--3 { + grid-template-columns: repeat(3, 1fr); +} +.sidebar-wpd--flairs--2 { + grid-template-columns: repeat(2, 1fr); +} + +.sidebar-wpd--flairs a { padding: 5px 5px 4px 5px; text-align: center; color: var(--muted); @@ -5585,20 +5590,11 @@ audio, video { box-shadow: 0 0 0 1px var(--primary); } -#sidebar-wpd--flairs a:hover { +.sidebar-wpd--flairs a:hover { color: #fff; text-decoration: none; } -#sidebar-lgb--host-notice img { - display: block; - margin: 1.5rem auto 1rem auto; -} -#sidebar-lgb--host-notice a { - display: block; - text-align: center; -} - #sidebar--directory--head { display: block; font-size: 1.35rem; diff --git a/files/routes/admin.py b/files/routes/admin.py index 4c096f9a2a..0ea454b168 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -267,7 +267,7 @@ def revert_actions(v, username): comments = [x[0] for x in g.db.query(ModAction.target_comment_id).filter(ModAction.user_id == user.id, ModAction.created_utc > cutoff, ModAction.kind == 'ban_comment').all()] comments = g.db.query(Comment).filter(Comment.id.in_(comments)).all() - + for item in posts + comments: item.is_banned = False item.ban_reason = None @@ -285,7 +285,7 @@ def revert_actions(v, username): user.is_banned = 0 send_repeatable_notification(user.id, f"@{v.username} has unbanned you!") g.db.add(user) - + for u in user.alts: u.shadowbanned = None u.unban_utc = 0 diff --git a/files/routes/static.py b/files/routes/static.py index ccfec09b79..4b54bed28e 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -467,7 +467,10 @@ if SITE == 'pcmemes.net': count = "1" if 'περιμένει' in count: - return process_streamer(id, '') + if live != '': + return process_streamer(id, '') + else: + return None count = int(count.replace('.', '')) @@ -480,7 +483,11 @@ if SITE == 'pcmemes.net': return (True, (id, req.url, thumb, name, title, count)) else: t = offline_regex.search(text) - if not t: return process_streamer(id, '') + if not t: + if live != '': + return process_streamer(id, '') + else: + return None y = offline_details_regex.search(text) diff --git a/files/templates/log.html b/files/templates/log.html index 4c49365976..b1882a2c78 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -125,14 +125,14 @@