mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
show pinned items
This commit is contained in:
parent
cf56992444
commit
ed58af25a5
10 changed files with 41 additions and 8 deletions
|
@ -140,6 +140,7 @@ class Post extends BaseObject
|
|||
$sparkle = '';
|
||||
$buttons = '';
|
||||
$dropping = false;
|
||||
$pinned = '';
|
||||
$pin = false;
|
||||
$star = false;
|
||||
$ignore = false;
|
||||
|
@ -287,6 +288,10 @@ class Post extends BaseObject
|
|||
|
||||
if ($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) {
|
||||
if ($origin) {
|
||||
if ($item['pinned']) {
|
||||
$pinned = L10n::t('pinned item');
|
||||
}
|
||||
|
||||
$ispinned = ($item['pinned'] ? 'pinned' : 'unpinned');
|
||||
|
||||
$pin = [
|
||||
|
@ -424,6 +429,7 @@ class Post extends BaseObject
|
|||
'edpost' => $edpost,
|
||||
'ispinned' => $ispinned,
|
||||
'pin' => $pin,
|
||||
'pinned' => $pinned,
|
||||
'isstarred' => $isstarred,
|
||||
'star' => $star,
|
||||
'ignore' => $ignore,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue