mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:43:40 +00:00
Use item created date if edited doesn't exist in Protocol\Diaspora::buildStatus
- Addresses https://github.com/friendica/friendica/issues/6918#issuecomment-502347886
This commit is contained in:
parent
da114445c9
commit
75894fa275
1 changed files with 1 additions and 1 deletions
|
@ -3543,7 +3543,7 @@ class Diaspora
|
|||
$public = ($item["private"] ? "false" : "true");
|
||||
|
||||
$created = DateTimeFormat::utc($item["created"], DateTimeFormat::ATOM);
|
||||
$edited = DateTimeFormat::utc($item["edited"], DateTimeFormat::ATOM);
|
||||
$edited = DateTimeFormat::utc($item["edited"] ?? $item["created"], DateTimeFormat::ATOM);
|
||||
|
||||
// Detect a share element and do a reshare
|
||||
if (!$item['private'] && ($ret = self::isReshare($item["body"]))) {
|
||||
|
|
Loading…
Reference in a new issue