aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-02 21:15:19 +0000
committerMario <mario@mariovavti.com>2023-03-02 21:15:19 +0000
commitda034045cc1bba74287b7c3e83f4a94ff5359150 (patch)
tree10e2ae77b7ab81811cf8e63cf5a38cf04761ebf4 /Zotlabs/Module
parent65f001b4b7dcf23ee80e137cfca64993a3da5318 (diff)
downloadvolse-hubzilla-da034045cc1bba74287b7c3e83f4a94ff5359150.tar.gz
volse-hubzilla-da034045cc1bba74287b7c3e83f4a94ff5359150.tar.bz2
volse-hubzilla-da034045cc1bba74287b7c3e83f4a94ff5359150.zip
some work on bringing bang tags back for forums
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Acl.php12
-rw-r--r--Zotlabs/Module/Item.php1
2 files changed, 8 insertions, 5 deletions
diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php
index b98f5621e..e7a1e6706 100644
--- a/Zotlabs/Module/Acl.php
+++ b/Zotlabs/Module/Acl.php
@@ -69,6 +69,7 @@ class Acl extends \Zotlabs\Web\Controller {
$sql_extra = '';
$sql_extra2 = '';
$sql_extra3 = '';
+ $sql_extra4 = (($type === 'f') ? ' AND xchan_pubforum = 1 ' : '');
$sql_extra2_xchan = '';
$order_extra2 = '';
@@ -219,7 +220,7 @@ class Acl extends \Zotlabs\Web\Controller {
$r = q("SELECT abook_id as id, xchan_hash as hash, xchan_name as name, xchan_network as net, xchan_photo_s as micro, xchan_url as url, xchan_addr as nick, abook_their_perms, xchan_pubforum, abook_flags, abook_self
FROM abook left join xchan on abook_xchan = xchan_hash
- WHERE (abook_channel = %d $extra_channels_sql) AND abook_blocked = 0 and abook_pending = 0 and xchan_deleted = 0 $sql_extra2 order by $order_extra2 xchan_name asc" ,
+ WHERE (abook_channel = %d $extra_channels_sql) AND abook_blocked = 0 and abook_pending = 0 and xchan_deleted = 0 $sql_extra2 $sql_extra4 order by $order_extra2 xchan_name asc" ,
intval(local_channel())
);
@@ -337,6 +338,7 @@ class Acl extends \Zotlabs\Web\Controller {
else
$r = array();
+
if($r) {
$i = count($contacts);
$x = [];
@@ -367,10 +369,12 @@ class Acl extends \Zotlabs\Web\Controller {
"nick" => substr($g['nick'],0,strpos($g['nick'],'@')),
"self" => (intval($g['abook_self']) ? 'abook-self' : ''),
"taggable" => 'taggable',
- "label" => t('network')
+ "label" => t('network'),
+ "net" => $g['net'] ?? ''
+
);
}
- if($type !== 'f') {
+ //if($type !== 'f') {
if (! array_key_exists($x[$lkey], $contacts) || ($contacts[$x[$lkey]]['net'] !== 'zot6' && $g['net'] == 'zot6')) {
$contacts[$x[$lkey]] = array(
"type" => "c",
@@ -387,7 +391,7 @@ class Acl extends \Zotlabs\Web\Controller {
"net" => $g['net'] ?? ''
);
}
- }
+ //}
$i++;
}
}
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 27fc62ee6..0643cc447 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -840,7 +840,6 @@ class Item extends Controller {
// Look for tags and linkify them
$results = linkify_tags($body, ($uid) ? $uid : $profile_uid);
-
if ($results) {
// Set permissions based on tag replacements