aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-18 12:19:34 +0000
committerMario <mario@mariovavti.com>2020-04-18 12:19:34 +0000
commit4cfc0b1a6410193b65673c5d43180aa9cecaeea2 (patch)
treec2ed038f9db748e6e0d94e038a2e75f12fc91ade
parent3d5fdd086be63bb8e9a889bfe593b3aaa4b4a6a2 (diff)
downloadvolse-hubzilla-4cfc0b1a6410193b65673c5d43180aa9cecaeea2.tar.gz
volse-hubzilla-4cfc0b1a6410193b65673c5d43180aa9cecaeea2.tar.bz2
volse-hubzilla-4cfc0b1a6410193b65673c5d43180aa9cecaeea2.zip
de-duplicate $post_tags
-rw-r--r--Zotlabs/Lib/Activity.php2
-rw-r--r--Zotlabs/Module/Item.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 24214072a..5882a0777 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -890,7 +890,7 @@ class Activity {
$ret['to'] = array_values(array_unique(array_merge($ret['to'], $mentions)));
}
}
-
+hz_syslog(print_r($ret,true));
return $ret;
}
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 9002b708d..6de8fe89f 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -721,6 +721,7 @@ class Item extends Controller {
);
}
}
+
}
if(($str_contact_allow) && (! $str_group_allow)) {
@@ -1017,10 +1018,9 @@ class Item extends Controller {
$datarray['layout_mid'] = $layout_mid;
$datarray['public_policy'] = $public_policy;
$datarray['comment_policy'] = map_scope($comment_policy);
- $datarray['term'] = $post_tags;
+ $datarray['term'] = array_unique($post_tags, SORT_REGULAR);
$datarray['plink'] = $plink;
$datarray['route'] = $route;
-
// A specific ACL over-rides public_policy completely