Jelajahi Sumber

Merge pull request #1522 from Alkarex/download-other-mimes

Download icon 💾 for other MIME types
Alexandre Alapetite 9 tahun lalu
induk
melakukan
ff3f639bcd
2 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 2 0
      CHANGELOG.md
  2. 1 1
      app/Models/Feed.php

+ 2 - 0
CHANGELOG.md

@@ -20,6 +20,8 @@
 	* Fix UI lowest subscription popup hidden [#1479](https://github.com/FreshRSS/FreshRSS/issues/1479)
 	* Fix update system via ZIP archive [#1498](https://github.com/FreshRSS/FreshRSS/pull/1498)
 	* Work around for IE / Edge bug in username pattern in version 1.6.3 [#1511](https://github.com/FreshRSS/FreshRSS/issues/1511)
+* UI
+	* Download icon 💾 for other MIME types (e.g. `application/*`) [#1522](https://github.com/FreshRSS/FreshRSS/pull/1522)
 * I18n
 	* Improve English [#1465](https://github.com/FreshRSS/FreshRSS/pull/1465)
 * Misc.

+ 1 - 1
app/Models/Feed.php

@@ -328,7 +328,7 @@ class FreshRSS_Feed extends Minz_Model {
 					} elseif (strpos($mime, 'video/') === 0) {
 						$content .= '<p class="enclosure"><video preload="none" src="' . $elink . '" controls="controls"></video> <a download="" href="' . $elink . '">💾</a></p>';
 					} else {
-						unset($elinks[$elink]);
+						$content .= '<p class="enclosure"><a download="" href="' . $elink . '">💾</a></p>';
 					}
 				}
 			}