aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-01 20:04:24 +0000
committerMario <mario@mariovavti.com>2024-01-01 20:04:24 +0000
commit2590e3c99be36f806fe25dd6db0504e853669fde (patch)
tree942a56c100b156beb091ac2f38206749e7dd413f /Zotlabs/Module
parent62db8c3969f783897ff2de1bf3250057c37eb422 (diff)
downloadvolse-hubzilla-2590e3c99be36f806fe25dd6db0504e853669fde.tar.gz
volse-hubzilla-2590e3c99be36f806fe25dd6db0504e853669fde.tar.bz2
volse-hubzilla-2590e3c99be36f806fe25dd6db0504e853669fde.zip
reveal repeat
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Share.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Share.php b/Zotlabs/Module/Share.php
index 716f7229b..eb22b5802 100644
--- a/Zotlabs/Module/Share.php
+++ b/Zotlabs/Module/Share.php
@@ -67,7 +67,7 @@ class Share extends \Zotlabs\Web\Controller {
$owner_uid = $r[0]['uid'];
$owner_aid = $r[0]['aid'];
-
+/*
$can_comment = false;
if((array_key_exists('owner',$item)) && intval($item['owner']['abook_self']))
$can_comment = perm_is_allowed($item['uid'],$observer['xchan_hash'],'post_comments');
@@ -78,7 +78,7 @@ class Share extends \Zotlabs\Web\Controller {
notice( t('Permission denied') . EOL);
killme();
}
-
+*/
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($item['owner_xchan'])
);
@@ -110,8 +110,8 @@ class Share extends \Zotlabs\Web\Controller {
$arr['body'] = sprintf( t('&#x1f501; Repeated %1$s\'s %2$s'), $mention, Activity::activity_obj_mapper($item['obj_type']));
$arr['author_xchan'] = $channel['channel_hash'];
- $arr['owner_xchan'] = $item['author_xchan'];
- $arr['obj'] = Activity::encode_item($item);
+ $arr['owner_xchan'] = $item['author_xchan'];
+ $arr['obj'] = $item['obj'];
$arr['obj_type'] = $item['obj_type'];
$arr['verb'] = ACTIVITY_SHARE;