diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-04-26 14:33:45 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-04-26 14:33:45 +0200 |
commit | 80415f6bd30ad8dfb919cfa2f5abcbd04d6d6639 (patch) | |
tree | 441211ec3d1524f1afab18bbadf7b86de45d4675 /Zotlabs/Module | |
parent | 7ab531025c519d603e25678090db55dff399d78a (diff) | |
download | volse-hubzilla-80415f6bd30ad8dfb919cfa2f5abcbd04d6d6639.tar.gz volse-hubzilla-80415f6bd30ad8dfb919cfa2f5abcbd04d6d6639.tar.bz2 volse-hubzilla-80415f6bd30ad8dfb919cfa2f5abcbd04d6d6639.zip |
remove unused code
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Request.php | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/Zotlabs/Module/Request.php b/Zotlabs/Module/Request.php index c52219f95..4bfaa6570 100644 --- a/Zotlabs/Module/Request.php +++ b/Zotlabs/Module/Request.php @@ -24,63 +24,6 @@ class Request extends Controller return EMPTY_STR; } - private function like_response($arr) { - - $page_mode = (($arr['item']['item_thread_top'] && $_REQUEST['page_mode']) ? $_REQUEST['page_mode'] : 'r_preview'); - $conv_mode = (($_REQUEST['conv_mode']) ? $_REQUEST['conv_mode'] : 'network'); - - if ($conv_mode === 'channel') { - $parts = explode('@', $arr['owner_xchan']['xchan_addr']); - profile_load($parts[0]); - } - - $item_normal = item_normal(); - - if ($page_mode === 'list') { - $items = q("SELECT item.*, item.id AS item_id FROM item - WHERE uid = %d $item_normal - AND parent = %d", - intval($arr['item']['uid']), - intval($arr['item']['parent']) - ); - xchan_query($items, true); - $items = fetch_post_tags($items, true); - $items = conv_sort($items, 'commented'); - } - else { - $activities = q("SELECT item.*, item.id AS item_id FROM item - WHERE uid = %d $item_normal - AND thr_parent = '%s' - AND verb IN ('%s', '%s', '%s', '%s', '%s', '%s', 'Accept', 'Reject', 'TentativeAccept')", - intval($arr['item']['uid']), - dbesc($arr['item']['mid']), - dbesc('Like'), - dbesc('Dislike'), - dbesc(ACTIVITY_SHARE), - dbesc(ACTIVITY_ATTEND), - dbesc(ACTIVITY_ATTENDNO), - dbesc(ACTIVITY_ATTENDMAYBE) - ); - xchan_query($activities, true); - $items = array_merge([$arr['item']], $activities); - $items = fetch_post_tags($items, true); - } - - $ret = [ - 'success' => 1, - 'orig_id' => $arr['orig_item_id'], //this is required for pubstream items where $item_id != $item['id'] - 'id' => $arr['item']['id'], - 'html' => conversation($items, $conv_mode, true, $page_mode), - ]; - - // mod photos - if (isset($_REQUEST['reload']) && $_REQUEST['reload']) { - $ret['reload'] = 1; - } - - return $ret; - - } public function get() : string { |