mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +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
|
@ -336,7 +336,7 @@ function mailstream_cron($a, $b) {
|
|||
if (!$ms_item_id['message-id'] || !strlen($ms_item_id['message-id'])) {
|
||||
logger('mailstream_cron: Item ' . $ms_item_id['id'] . ' URI ' . $ms_item_id['uri'] . ' has no message-id', LOGGER_NORMAL);
|
||||
}
|
||||
$item = Item::selectFirst($ms_item_id['uid'], Item::DISPLAY_FIELDLIST, ['id' => $ms_item_id['id']]);
|
||||
$item = Item::selectFirst([], ['id' => $ms_item_id['id']]);
|
||||
$users = q("SELECT * FROM `user` WHERE `uid` = %d", intval($item['uid']));
|
||||
$user = $users[0];
|
||||
if ($user && $item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue