diff options
author | Friendika <info@friendika.com> | 2011-04-06 20:03:06 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-06 20:03:06 -0700 |
commit | 109c25a1bd04ba27f19ecad23e174daef0fc691b (patch) | |
tree | 10bb556da9b68a39c90c998c0a7ee1e262e13ed4 /include | |
parent | 6728a11ee38e890a0ce9b8b6d96dba98a7238129 (diff) | |
download | volse-hubzilla-109c25a1bd04ba27f19ecad23e174daef0fc691b.tar.gz volse-hubzilla-109c25a1bd04ba27f19ecad23e174daef0fc691b.tar.bz2 volse-hubzilla-109c25a1bd04ba27f19ecad23e174daef0fc691b.zip |
some fixes to attachment output in feed
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 501f2f944..9eaee4573 100644 --- a/include/items.php +++ b/include/items.php @@ -1584,14 +1584,14 @@ function item_getfeedtags($item) { } function item_getfeedattach($item) { - $ret = array(); + $ret = ''; $arr = explode(',',$item['attach']); if(count($arr)) { foreach($arr as $r) { $matches = false; - $cnt = preg_match('|\<a href=\"(.+?)\" size=\"(.+?)\" type=\"(.+?)\" >(.+?)</a>|',$item['attach'],$matches); + $cnt = preg_match('|\<a href=\"(.+?)\" size=\"(.+?)\" type=\"(.+?)\" >(.+?)</a>|',$r,$matches); if($cnt) { - $ret .= '<link href="' . $matches[1] . '" type="' . $matches[3] . '" '; + $ret .= '<link rel="enclosure" href="' . $matches[1] . '" type="' . $matches[3] . '" '; if(intval($matches[2])) $ret .= 'size="' . intval($matches[2]) . '" '; if($matches[4] !== ' ') |