public static $which = '';
public static $profile = 0;
- public static function init()
+ public static function init(array $parameters = [])
{
$a = self::getApp();
}
}
- public static function rawContent()
+ public static function rawContent(array $parameters = [])
{
if (ActivityPub::isRequest()) {
$user = DBA::selectFirst('user', ['uid'], ['nickname' => self::$which]);
}
}
- public static function content($update = 0)
+ public static function content(array $parameters = [], $update = 0)
{
$a = self::getApp();
}
if (!$update) {
- $tab = Strings::escapeTags(trim($_GET['tab'] ?? ''));
+ $tab = Strings::escapeTags(trim($_GET['tab'] ?? ''));
$o .= ProfileModel::getTabs($a, $tab, $is_owner, $a->profile['nickname']);
$items = DBA::toArray($items_stmt);
+ if ($pager->getStart() == 0) {
+ $pinned_items = Item::selectPinned($a->profile['profile_uid'], ['uri']);
+ $pinned = Item::inArray($pinned_items);
+ $items = array_merge($items, $pinned);
+ }
+
$o .= conversation($a, $items, $pager, 'profile', $update, false, 'received', $a->profile['profile_uid']);
if (!$update) {