BTHLABS-0000: Fix YT embed code

This commit is contained in:
2025-12-04 20:46:38 +01:00
parent 1e549d3fc2
commit 82a3b612ec
2 changed files with 4 additions and 2 deletions

View File

@@ -3,11 +3,13 @@
{% if save.is_youtube_video %}
<div class="mb-0 d-flex justify-content-center">
<iframe
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allow="accelerometer *; clipboard-write *; encrypted-media *; gyroscope *; picture-in-picture *; web-share *;"
allowfullscreen
class="ui-youtube-iframe"
frameborder="0"
height="200"
referrerpolicy="strict-origin"
scrolling="no"
src="{{ save|render_youtube_embed_url }}"
title="YouTube video player"
width="320"

View File

@@ -103,7 +103,7 @@ def ci(ctx: Context):
@task
def setup(ctx: Context):
ctx.run('python manage.py migrate')
ctx.run('python manage.py create_initial_account hotpocket hotpocketm4st3r')
ctx.run('python manage.py create_initial_account -u hotpocket -p hotpocketm4st3r')
if WORKSPACE_MODE == WorkspaceMode.METAL:
ctx.run('mkdir -p run/uploads')