From 06b35d8d00cb65b2675796387b55f8e27b3a1aed Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 17 Jun 2024 13:17:19 +1000 Subject: [PATCH] Add same code to viewconnections, but with slightly different descriptive text --- src/Module/Viewconnections.php | 5 ++++- view/tpl/contact_template.tpl | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Module/Viewconnections.php b/src/Module/Viewconnections.php index 4c11ed7b3..575a6cf5d 100644 --- a/src/Module/Viewconnections.php +++ b/src/Module/Viewconnections.php @@ -69,11 +69,14 @@ class Viewconnections extends Controller 'thumb' => $rr['xchan_photo_m'], 'name' => substr($rr['xchan_name'], 0, 20), 'username' => $rr['xchan_addr'], + 'channel_type' => $rr['xchan_type'], 'link' => $url, 'sparkle' => '', 'itemurl' => $rr['url'], 'network' => '', - 'oneway' => $oneway + 'oneway' => $oneway, + 'oneway_desc' => t('Is not following back'), + 'group_desc' => t('Is only following group posts') ]; } } diff --git a/view/tpl/contact_template.tpl b/view/tpl/contact_template.tpl index 2a2f996f4..80035712d 100755 --- a/view/tpl/contact_template.tpl +++ b/view/tpl/contact_template.tpl @@ -1,8 +1,12 @@
{{$contact.name}} - {{if $contact.oneway}} - + {{if $contact.oneway}} + {{if $contact.channel_type == 1}} + + {{else}} + + {{/if}} {{/if}}