aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-04 15:35:46 +0100
committerMax Kostikov <max@kostikov.co>2019-12-04 15:35:46 +0100
commita6516341c50fb54b0d40b12fe76230f07e499fb2 (patch)
tree95bf5e2c3bc0470fb0bb7d027b2fa2fcf4f3b2dc /Zotlabs
parent9a70c3c2759ee479f598dceef1ad95b4675db7f0 (diff)
downloadvolse-hubzilla-a6516341c50fb54b0d40b12fe76230f07e499fb2.tar.gz
volse-hubzilla-a6516341c50fb54b0d40b12fe76230f07e499fb2.tar.bz2
volse-hubzilla-a6516341c50fb54b0d40b12fe76230f07e499fb2.zip
Show unpin button for pinned post for owner only
Diffstat (limited to 'Zotlabs')
-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'),