diff options
author | Mario <mario@mariovavti.com> | 2023-12-20 12:15:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-12-20 12:15:24 +0000 |
commit | 3aefe23184c25c1fc0865313d13902cabfb934d3 (patch) | |
tree | 45bf4f35de4c64261db85616dc9e3a39f3a31324 /Zotlabs/Module/Share.php | |
parent | 6f852814fd5ba6dab0e56e6d73666d438e6d0c09 (diff) | |
download | volse-hubzilla-3aefe23184c25c1fc0865313d13902cabfb934d3.tar.gz volse-hubzilla-3aefe23184c25c1fc0865313d13902cabfb934d3.tar.bz2 volse-hubzilla-3aefe23184c25c1fc0865313d13902cabfb934d3.zip |
changelog
Diffstat (limited to 'Zotlabs/Module/Share.php')
-rw-r--r-- | Zotlabs/Module/Share.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Share.php b/Zotlabs/Module/Share.php index 716f7229b..576a415af 100644 --- a/Zotlabs/Module/Share.php +++ b/Zotlabs/Module/Share.php @@ -68,6 +68,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,6 +79,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']) @@ -113,7 +115,7 @@ class Share extends \Zotlabs\Web\Controller { $arr['owner_xchan'] = $item['author_xchan']; $arr['obj'] = Activity::encode_item($item); $arr['obj_type'] = $item['obj_type']; - $arr['verb'] = ACTIVITY_SHARE; + $arr['verb'] = 'Announce'; //ACTIVITY_SHARE; $post = item_store($arr); |