diff --git a/.gitignore b/.gitignore index 46b4e3be0..505f234d0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,8 @@ chart.png video.mp4 video.webm cache/ -images/ -songs/ +/images/ +/songs/ __pycache__/ disablesignups *rules.html diff --git a/files/assets/css/lite-youtube.css b/files/assets/css/lite-youtube.css index 73f41b508..ab3efc3ac 100644 --- a/files/assets/css/lite-youtube.css +++ b/files/assets/css/lite-youtube.css @@ -38,10 +38,9 @@ lite-youtube > iframe { border: 0; } -/* play button */ lite-youtube > .lty-playbtn { - width: 68px; - height: 48px; + width: 100px; + height: 100px; position: absolute; cursor: pointer; transform: translate3d(-50%, -50%, 0); @@ -49,9 +48,7 @@ lite-youtube > .lty-playbtn { left: 50%; z-index: 1; background-color: transparent; - /* YT's actual play button svg */ - background-image: url('data:image/svg+xml;utf8,'); - filter: grayscale(100%); + background-image: url('/assets/images/youtube.webp?v=1'); transition: filter .1s cubic-bezier(0, 0, 0.2, 1); border: none; } diff --git a/files/assets/images/youtube.webp b/files/assets/images/youtube.webp new file mode 100644 index 000000000..1094ad0d5 Binary files /dev/null and b/files/assets/images/youtube.webp differ diff --git a/files/routes/posts.py b/files/routes/posts.py index b3ff39d04..cafa7ae3e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -187,7 +187,7 @@ def post_id(pid, anything=None, v=None): offset = 0 - if post.comment_count > 60: + if not request.headers.get("Authorization") and post.comment_count > 60: comments2 = [] count = 0 if post.created_utc > 1638672040: diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 804ebf0ee..197641037 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -14,11 +14,11 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/log.html b/files/templates/log.html index 63ebda978..35d81cee6 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,11 +6,11 @@ {% block content %} {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %}