mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
New user based item function
This commit is contained in:
parent
ef0a2f6f8d
commit
c66dcf96ac
5 changed files with 7 additions and 7 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(), Item::DISPLAY_FIELDLIST, $condition, $params);
|
||||
$item = Item::selectFirstForUser(local_user(), [], $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