aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-19 11:24:42 +0000
committerMario <mario@mariovavti.com>2022-01-19 11:24:42 +0000
commitd98d56c3b5481e12dc53136c06b6c9c069d40d98 (patch)
treea7dc56dbd8f82b194c3a15627596b42cd00e4670 /include
parent5f21edcc53182cc04176657318a7b2933e7a71aa (diff)
downloadvolse-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 'include')
-rw-r--r--include/conversation.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index bdd27c55f..17367856c 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -775,6 +775,12 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$conv_link = ((in_array($item['item_type'],[ ITEM_TYPE_CARD, ITEM_TYPE_ARTICLE] )) ? $item['plink'] : z_root() . '/' . $conv_link_module . '/' . gen_link_id($conv_link_mid));
+ $contact = [];
+
+ if(App::$contacts && array_key_exists($item['author_xchan'],App::$contacts)) {
+ $contact = App::$contacts[$item['author_xchan']];
+ }
+
$tmp_item = array(
'template' => $tpl,
'toplevel' => 'toplevel_item',
@@ -838,7 +844,8 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
'wait' => t('Please wait'),
'thread_level' => 1,
'has_tags' => $has_tags,
- 'is_new' => $is_new
+ 'is_new' => $is_new,
+ 'contact_id' => (($contact) ? $contact['abook_id'] : '')
);
$arr = array('item' => $item, 'output' => $tmp_item);