diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-04 20:07:08 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-06-07 09:36:13 +0200 |
commit | cdfd42053d4920bc2c7c508d512ad3c7033d8095 (patch) | |
tree | acfe28b74830977e9c814f177092c4f0b9749c1d | |
parent | 36d40866738ca81a31002251d4ca63f1087d8054 (diff) | |
download | volse-hubzilla-cdfd42053d4920bc2c7c508d512ad3c7033d8095.tar.gz volse-hubzilla-cdfd42053d4920bc2c7c508d512ad3c7033d8095.tar.bz2 volse-hubzilla-cdfd42053d4920bc2c7c508d512ad3c7033d8095.zip |
always add a length to ostatus compat enclosures - even if unknown (0)
-rw-r--r-- | include/feedutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php index 1563bdb41..5f86ad5a4 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -1441,7 +1441,7 @@ function atom_entry($item, $type, $author, $owner, $comment = false, $cid = 0, $ foreach($compat_photos as $enc) { $o .= '<link rel="enclosure" ' . (($enc['href']) ? 'href="' . $enc['href'] . '" ' : '') - . (($enc['length']) ? 'length="' . $enc['length'] . '" ' : '') + . ((array_key_exists('length',$enc)) ? 'length="' . $enc['length'] . '" ' : '') . (($enc['type']) ? 'type="' . $enc['type'] . '" ' : '') . ' />' . "\r\n"; } |