- if (!$origin) {
- /// @todo This shouldn't be done as query here, but better during the data creation.
- // it is now done here, since during the RC phase we shouldn't make to intense changes.
- $parent = PostModel::selectFirst(['origin'], ['id' => $item['parent']]);
- if (DBA::isResult($parent)) {
- $origin = $parent['origin'];
- }
- } elseif ($item['pinned']) {
- $pinned = DI::l10n()->t('pinned item');