aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-03 21:58:53 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-03 21:58:53 +0200
commitf14cb04e8bc7935886052cafeacf997e1896c23d (patch)
treecd4a52e7b60933caaaaf782c9b25a29edd112c83 /app/Models/Feed.php
parent3b2b91e1f2bd7ad653a6e8dd079bce34910d9361 (diff)
💾 in paragraph
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 5d09e7be8..f13c42b0b 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -309,11 +309,11 @@ class FreshRSS_Feed extends Minz_Model {
$elinks[$elink] = '1';
$mime = strtolower($enclosure->get_type());
if (strpos($mime, 'image/') === 0) {
- $content .= '<br /><img lazyload="" src="' . $elink . '" alt="" />';
+ $content .= '<p><img lazyload="" src="' . $elink . '" alt="" /></p>';
} elseif (strpos($mime, 'audio/') === 0) {
- $content .= '<br /><audio preload="none" src="' . $elink . '" controls="controls"></audio> <a class="download-enclosure" href="' . $elink . '">💾</a>';
+ $content .= '<p><audio preload="none" src="' . $elink . '" controls="controls"></audio> <a class="download-enclosure" download="" href="' . $elink . '">💾</a></p>';
} elseif (strpos($mime, 'video/') === 0) {
- $content .= '<br /><video preload="none" src="' . $elink . '" controls="controls"></video> <a class="download-enclosure" href="' . $elink . '">💾</a>';
+ $content .= '<p><video preload="none" src="' . $elink . '" controls="controls"></video> <a class="download-enclosure" download="" href="' . $elink . '">💾</a></p>';
} else {
unset($elinks[$elink]);
}