Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog

- add script to parse worker logs for @@content-creator endpoint errors
- add X-CASTLEMTA-PRIORITY header to 2fa emails
- handle youtube shorts in video content type


3.1.0b7 (2025-06-09)
Expand Down
3 changes: 3 additions & 0 deletions castle/cms/browser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ def clean_youtube_url(self, url):
if '/embed/' in url:
_id = _clean_youtube_id(url.partition('/embed/')[-1])
return 'https://www.youtube-nocookie.com/embed/%s' % _id
if '/shorts/' in url:
_id = _clean_youtube_id(url.partition('/shorts/')[-1])
return 'https://www.youtube-nocookie.com/embed/%s' % _id
if 'youtu.be' in url:
_id = _clean_youtube_id(url.partition('https://youtu.be/')[-1])
return 'https://www.youtube-nocookie.com/embed/%s' % _id
Expand Down