Normalize the datetime format of received activity before DB insertion in ActivityPub\Processor
- Restore private message storage
This commit is contained in:
parent
9e24b8c55f
commit
94a70f54d1
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue