Move another function

move get_plink to Item class, and also fix up getApp since we extend BaseObject
This commit is contained in:
Adam Magness 2018-11-07 07:19:39 -05:00
parent e537f7d017
commit 7cb9138201
4 changed files with 39 additions and 40 deletions

View file

@ -392,7 +392,7 @@ class Post extends BaseObject
'owner_url' => $this->getOwnerUrl(),
'owner_photo' => $a->removeBaseURL(ProxyUtils::proxifyUrl($item['owner-avatar'], false, ProxyUtils::SIZE_THUMB)),
'owner_name' => htmlentities($owner_name_e),
'plink' => get_plink($item),
'plink' => Item::getPlink($item),
'edpost' => Feature::isEnabled($conv->getProfileOwner(), 'edit_posts') ? $edpost : '',
'isstarred' => $isstarred,
'star' => Feature::isEnabled($conv->getProfileOwner(), 'star_posts') ? $star : '',