Normalize the datetime format of received activity before DB insertion in ActivityPub\Processor

- Restore private message storage
2022.09-rc
Hypolite Petovan 2019-06-12 21:02:37 -04:00
rodzic 9e24b8c55f
commit 94a70f54d1
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -142,7 +142,7 @@ class Processor
}
$item['changed'] = DateTimeFormat::utcNow();
$item['edited'] = $activity['updated'];
$item['edited'] = DateTimeFormat::utc($activity['updated']);
$item = self::processContent($activity, $item);
if (empty($item)) {
@ -382,8 +382,8 @@ class Processor
$item['uri'] = $activity['id'];
$item['created'] = $activity['published'];
$item['edited'] = $activity['updated'];
$item['created'] = DateTimeFormat::utc($activity['published']);
$item['edited'] = DateTimeFormat::utc($activity['updated']);
$item['guid'] = $activity['diaspora:guid'];
$item = self::processContent($activity, $item);