aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Pinned.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-04 15:42:48 +0100
committerMax Kostikov <max@kostikov.co>2019-12-04 15:42:48 +0100
commit2dd2b755f121cc3cb701f5255222bacc5f360b82 (patch)
tree60699ffd59ba106102b844410223d846867aeef9 /Zotlabs/Widget/Pinned.php
parent5998445841225c286a7155d100dddc4c31079e84 (diff)
parenta6516341c50fb54b0d40b12fe76230f07e499fb2 (diff)
downloadvolse-hubzilla-2dd2b755f121cc3cb701f5255222bacc5f360b82.tar.gz
volse-hubzilla-2dd2b755f121cc3cb701f5255222bacc5f360b82.tar.bz2
volse-hubzilla-2dd2b755f121cc3cb701f5255222bacc5f360b82.zip
Merge branch 'dev' into 'dev'
Show unpin button in pinned post for owner only See merge request hubzilla/core!1799
Diffstat (limited to 'Zotlabs/Widget/Pinned.php')
-rw-r--r--Zotlabs/Widget/Pinned.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php
index ec2c7f4e8..3324206f4 100644
--- a/Zotlabs/Widget/Pinned.php
+++ b/Zotlabs/Widget/Pinned.php
@@ -154,7 +154,7 @@ class Pinned {
'embed' => $embed,
'plink' => get_plink($item),
'pinned' => t('Pinned post'),
- 'pinme' => t('Unpin from the top'),
+ 'pinme' => (($observer['xchan_hash'] == $owner['xchan_hash']) ? t('Unpin from the top') : ''),
'hide' => (! $is_new && $observer && ($observer['xchan_hash'] != $owner['xchan_hash']) ? t("Don't show") : ''),
// end toolbar buttons
'modal_dismiss' => t('Close'),