mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
Remove direct item sql queries
This commit is contained in:
parent
e1714de8ad
commit
392bb7d5aa
6 changed files with 20 additions and 331 deletions
|
@ -405,7 +405,7 @@ function advancedcontentfilter_get_variables_guid(ServerRequestInterface $reques
|
|||
|
||||
$condition = ["`guid` = ? AND (`uid` = ? OR `uid` = 0)", $args['guid'], local_user()];
|
||||
$params = ['order' => ['uid' => true]];
|
||||
$item = Item::selectFirst(local_user(), [], $condition, $params);
|
||||
$item = Item::selectFirst(local_user(), Item::DISPLAY_FIELDLIST, $condition, $params);
|
||||
|
||||
if (!\Friendica\Database\DBM::is_result($item)) {
|
||||
throw new HTTPException\NotFoundException(L10n::t('Unknown post with guid: %s', $args['guid']));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue