X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fitems.php;h=5969466813a0d1b406a8319c3802abfc4ef6a007;hb=b8479cc2f98bdd3b144cfda127c799ba4740fc83;hp=501f2f94478717ecdd92d19aae01de43d06b0cac;hpb=6728a11ee38e890a0ce9b8b6d96dba98a7238129;p=friendica.git
diff --git a/include/items.php b/include/items.php
index 501f2f9447..5969466813 100644
--- a/include/items.php
+++ b/include/items.php
@@ -653,6 +653,7 @@ function item_store($arr,$force_parent = false) {
$arr['private'] = ((x($arr,'private')) ? intval($arr['private']) : 0 );
$arr['body'] = ((x($arr,'body')) ? trim($arr['body']) : '');
$arr['tag'] = ((x($arr,'tag')) ? notags(trim($arr['tag'])) : '');
+ $arr['attach'] = ((x($arr,'attach')) ? notags(trim($arr['attach'])) : '');
if($arr['parent-uri'] === $arr['uri']) {
$parent_id = 0;
@@ -1584,18 +1585,18 @@ 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('|\(.+?)|',$item['attach'],$matches);
+ $cnt = preg_match('|\(.+?)|',$r,$matches);
if($cnt) {
- $ret .= '