From ee28ba5be118bdd7f561230ef12fda6b4a9f6630 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 17 Jan 2022 08:23:15 +0000 Subject: adjust lock hover text if item_private === 2 --- Zotlabs/Lib/ThreadItem.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 4675df04e..d974325a9 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -111,6 +111,11 @@ class ThreadItem { // 1 = restricted message, 2 = direct message $locktype = intval($item['item_private']); + + if ($locktype === 2) { + $lock = t('Direct message'); + } + // 0 = limited based on public policy if ($item['uid'] == local_channel() && intval($item['item_private']) && !$acl->is_private() && strlen($item['public_policy'])) { $lock = t('Public Policy'); -- cgit v1.2.3