aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-17 08:23:15 +0000
committerMario <mario@mariovavti.com>2022-01-17 08:23:15 +0000
commitee28ba5be118bdd7f561230ef12fda6b4a9f6630 (patch)
treec76e895e31db05f649a9413d83db618d6e2d4f82 /Zotlabs
parent9a22e9cf393efb2759fca8d724e54efcf9f4f16b (diff)
downloadvolse-hubzilla-ee28ba5be118bdd7f561230ef12fda6b4a9f6630.tar.gz
volse-hubzilla-ee28ba5be118bdd7f561230ef12fda6b4a9f6630.tar.bz2
volse-hubzilla-ee28ba5be118bdd7f561230ef12fda6b4a9f6630.zip
adjust lock hover text if item_private === 2
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php5
1 files changed, 5 insertions, 0 deletions
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');