diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-05-26 23:02:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 23:02:42 +0200 |
commit | 0a1992430db7a859b3b7faa3d9ce4f07734b5fd8 (patch) | |
tree | 7db13796c63ef4e9cec4653ec9cf6a0a10aeef21 /app/lib/rss | |
parent | 52f4e834f293c9fdbf5805639d022ac4e3856b75 (diff) |
Fix errors when rendering RSS feeds (#18531)
Diffstat (limited to 'app/lib/rss')
-rw-r--r-- | app/lib/rss/media_content.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/rss/media_content.rb b/app/lib/rss/media_content.rb index 7aefd8b40..f281fe29e 100644 --- a/app/lib/rss/media_content.rb +++ b/app/lib/rss/media_content.rb @@ -26,4 +26,10 @@ class RSS::MediaContent < RSS::Element description['type'] = 'plain' end end + + def thumbnail(str) + append_element('media:thumbnail') do |thumbnail| + thumbnail['url'] = str + end + end end |