sforkowany z mirror/friendica
Use item created date if edited doesn't exist in Protocol\Diaspora::buildStatus
- Addresses https://github.com/friendica/friendica/issues/6918#issuecomment-5023478862022.09-rc
rodzic
da114445c9
commit
75894fa275
|
@ -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"]))) {
|
||||
|
|
Ładowanie…
Reference in New Issue