Merge pull request #7858 from annando/diaspora-date
Don't use the creation date when transmitting to Diaspora
This commit is contained in:
commit
20dc285f9d
|
@ -31,7 +31,7 @@ class Fetch extends BaseModule
|
||||||
|
|
||||||
// Fetch the item
|
// Fetch the item
|
||||||
$fields = [
|
$fields = [
|
||||||
'uid', 'title', 'body', 'guid', 'contact-id', 'private', 'created', 'app', 'location', 'coord', 'network',
|
'uid', 'title', 'body', 'guid', 'contact-id', 'private', 'created', 'received', 'app', 'location', 'coord', 'network',
|
||||||
'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'attach'
|
'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'attach'
|
||||||
];
|
];
|
||||||
$condition = ['wall' => true, 'private' => false, 'guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
|
$condition = ['wall' => true, 'private' => false, 'guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
|
||||||
|
|
|
@ -3565,8 +3565,7 @@ class Diaspora
|
||||||
$myaddr = self::myHandle($owner);
|
$myaddr = self::myHandle($owner);
|
||||||
|
|
||||||
$public = ($item["private"] ? "false" : "true");
|
$public = ($item["private"] ? "false" : "true");
|
||||||
|
$created = DateTimeFormat::utc($item['received'], DateTimeFormat::ATOM);
|
||||||
$created = DateTimeFormat::utc($item["created"], DateTimeFormat::ATOM);
|
|
||||||
$edited = DateTimeFormat::utc($item["edited"] ?? $item["created"], DateTimeFormat::ATOM);
|
$edited = DateTimeFormat::utc($item["edited"] ?? $item["created"], DateTimeFormat::ATOM);
|
||||||
|
|
||||||
// Detect a share element and do a reshare
|
// Detect a share element and do a reshare
|
||||||
|
|
Loading…
Reference in a new issue