Skip to content

[pull] main from forem:main - #399

Merged
pull[bot] merged 1 commit into
amishakov:mainfrom
forem:main
Sep 24, 2026
Merged

pull[bot] merged 1 commit into
amishakov:mainfrom
forem:main

Conversation

@pull

@pull pull Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

)

The web and API param whitelists only permitted `video_source_url` when
it was present, so a blank/null value sent by the editor's "Remove"
button was silently dropped and the cover video stayed on the article.

- Permit `video_source_url` when the key is present and blank, so the
  cover video can be removed. The host whitelist is unchanged.
- Extract the whitelist into `Article::LINKED_VIDEO_SOURCE_PATTERNS` /
  `Article.permitted_video_source_url?` so both controllers share it.
- In `generate_video_embed_url`, clear the derived `video` (and the
  Mux-derived thumbnail) when a previously set source URL is removed,
  without touching articles whose `video_source_url` was already nil.
- Regression specs for the model, web and API update paths.

Fixes #23118
@pull pull Bot locked and limited conversation to collaborators Sep 24, 2026
@pull pull Bot added the ⤵️ pull label Sep 24, 2026
@pull
pull Bot merged commit 78e598d into amishakov:main Sep 24, 2026
2 of 4 checks passed

This branch had an error being deployed

1 failed deployment
production — 78e598d2 Deployed Sep 24, 2026 by pull[bot] via deploy (production) #375
staging — 78e598d2 Deployed Sep 24, 2026 by pull[bot] via deploy (staging) #375
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant