https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb0cf09
)
Sanitize the date for mails
author
Michael
<heluecht@pirati.ca>
Thu, 13 Jun 2019 03:22:15 +0000
(
03:22
+0000)
committer
Michael
<heluecht@pirati.ca>
Thu, 13 Jun 2019 03:22:15 +0000
(
03:22
+0000)
src/Model/Mail.php
patch
|
blob
|
history
diff --git
a/src/Model/Mail.php
b/src/Model/Mail.php
index
30191ed
..
9f36825
100644
(file)
--- a/
src/Model/Mail.php
+++ b/
src/Model/Mail.php
@@
-46,6
+46,8
@@
class Mail
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
}
+ $msg['created'] = (isset($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow());
+
DBA::lock('mail');
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {