diff options
author | Mario <mario@mariovavti.com> | 2022-01-19 11:24:42 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-19 11:24:42 +0000 |
commit | d98d56c3b5481e12dc53136c06b6c9c069d40d98 (patch) | |
tree | a7dc56dbd8f82b194c3a15627596b42cd00e4670 /Zotlabs | |
parent | 5f21edcc53182cc04176657318a7b2933e7a71aa (diff) | |
download | volse-hubzilla-d98d56c3b5481e12dc53136c06b6c9c069d40d98.tar.gz volse-hubzilla-d98d56c3b5481e12dc53136c06b6c9c069d40d98.tar.bz2 volse-hubzilla-d98d56c3b5481e12dc53136c06b6c9c069d40d98.zip |
provide a spinner for edit connection action in threads
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index d974325a9..8d20935a1 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -2,6 +2,7 @@ namespace Zotlabs\Lib; +use App; use Zotlabs\Lib\Apps; use Zotlabs\Access\AccessList; @@ -412,6 +413,12 @@ class ThreadItem { $pinned_items = ($allowed_type ? get_pconfig($item['uid'], 'pinned', $item['item_type'], []) : []); $pinned = ((!empty($pinned_items) && in_array($midb64, $pinned_items)) ? true : false); + $contact = []; + + if(App::$contacts && array_key_exists($item['author_xchan'], App::$contacts)) { + $contact = App::$contacts[$item['author_xchan']]; + } + $tmp_item = array( 'template' => $this->get_template(), 'mode' => $mode, @@ -532,7 +539,9 @@ class ThreadItem { 'wait' => t('Please wait'), 'thread_level' => $thread_level, 'settings' => $settings, - 'thr_parent' => (($item['parent_mid'] != $item['thr_parent']) ? gen_link_id($item['thr_parent']) : '') + 'thr_parent' => (($item['parent_mid'] != $item['thr_parent']) ? gen_link_id($item['thr_parent']) : ''), + 'contact_id' => (($contact) ? $contact['abook_id'] : '') + ); $arr = array('item' => $item, 'output' => $tmp_item); |