mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
Merge pull request #5452 from MrPetovan/bug/5443-fix-worker-notices
Fix notices in OEmbed et al.
This commit is contained in:
commit
5a8654194a
5 changed files with 169 additions and 109 deletions
|
@ -1330,8 +1330,6 @@ class Item extends BaseObject
|
|||
$item['uri-hash'] = $existing['uri-hash'];
|
||||
}
|
||||
|
||||
self::addLanguageToItemArray($item);
|
||||
|
||||
$item['wall'] = intval(defaults($item, 'wall', 0));
|
||||
$item['extid'] = trim(defaults($item, 'extid', ''));
|
||||
$item['author-name'] = trim(defaults($item, 'author-name', ''));
|
||||
|
@ -1383,6 +1381,8 @@ class Item extends BaseObject
|
|||
return 0;
|
||||
}
|
||||
|
||||
self::addLanguageToItemArray($item);
|
||||
|
||||
// Items cannot be stored before they happen ...
|
||||
if ($item['created'] > DateTimeFormat::utcNow()) {
|
||||
$item['created'] = DateTimeFormat::utcNow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue