aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
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 /Zotlabs/Module/Item.php
parent3d5fdd086be63bb8e9a889bfe593b3aaa4b4a6a2 (diff)
downloadvolse-hubzilla-4cfc0b1a6410193b65673c5d43180aa9cecaeea2.tar.gz
volse-hubzilla-4cfc0b1a6410193b65673c5d43180aa9cecaeea2.tar.bz2
volse-hubzilla-4cfc0b1a6410193b65673c5d43180aa9cecaeea2.zip
de-duplicate $post_tags
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r--Zotlabs/Module/Item.php4
1 files changed, 2 insertions, 2 deletions
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