1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Add addDynamicIframe rewrite function.

Add unit tests for `add_dynamic_iframe` rewrite.
This commit is contained in:
Dave 2024-01-21 21:28:21 -05:00 committed by Frédéric Guillot
parent 50341759b6
commit 1159dd6982
3 changed files with 87 additions and 0 deletions

View file

@ -69,6 +69,8 @@ func applyRule(entryURL string, entry *model.Entry, rule rule) {
entry.Content = addMailtoSubject(entryURL, entry.Content)
case "add_dynamic_image":
entry.Content = addDynamicImage(entryURL, entry.Content)
case "add_dynamic_iframe":
entry.Content = addDynamicIframe(entryURL, entry.Content)
case "add_youtube_video":
entry.Content = addYoutubeVideo(entryURL, entry.Content)
case "add_invidious_video":