mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Sanitize the date for mails
This commit is contained in:
parent
bb0cf09057
commit
2ae4371606
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ class Mail
|
||||||
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$msg['created'] = (isset($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow());
|
||||||
|
|
||||||
DBA::lock('mail');
|
DBA::lock('mail');
|
||||||
|
|
||||||
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
||||||
|
|
Loading…
Reference in a new issue