Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
Aonrud ed723546ab fix: Unclosed iframe in last commit
Fixes c821a830cb -- close your tags!
2023-02-28 13:55:14 +00:00
Aonrud c821a830cb feat: Replace link preview with embed when linking to an ILA Podcast episode
Check at the template level if this is a podcast episode link. There's no advantage to abstracting using e.g. og:audio, because it's a single exception case and  we don't want to open the CSP to arbitrary domains.
2023-02-28 12:23:03 +00:00
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -417,7 +417,10 @@
{% set ns.show = False %}
{% endif %}
{% endfor %}
{% if ns.show == True %}
{# Custom case to embed the ILA Podcast #}
{% if 'https://podcast.leftarchive.ie/@ILAPodcast/episodes/' in og_meta.url %}
<iframe src="{{ og_meta.url}}/embed" scrolling="no" frameborder="0" width="100%"></iframe>
{% elif ns.show == True %}
<a href="{{ og_meta.url | privacy_replace_url }}" class="activity-og-meta card">
{% if og_meta.image %}
<div class="meta-img"><img src="{{ og_meta.image | media_proxy_url }}" /></div>