mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
Pinned posts now work for visitors in the intended way
This commit is contained in:
parent
2200996d44
commit
fc94cad5f2
4 changed files with 34 additions and 10 deletions
|
@ -193,6 +193,8 @@ class Post extends BaseObject
|
|||
if (DBA::isResult($parent)) {
|
||||
$origin = $parent['origin'];
|
||||
}
|
||||
} elseif ($item['pinned']) {
|
||||
$pinned = L10n::t('pinned item');
|
||||
}
|
||||
|
||||
if ($origin && ($item['id'] != $item['parent']) && ($item['network'] == Protocol::ACTIVITYPUB)) {
|
||||
|
@ -288,10 +290,6 @@ 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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue