1
0
Fork 0

Merge pull request #12889 from annando/api-edited-at

"edited_at" must only be displayed when the entry had been updated
This commit is contained in:
Hypolite Petovan 2023-03-14 14:04:36 -04:00 committed by GitHub
commit 14647acce2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,6 +213,10 @@ class Status extends BaseDataTransferObject
$status['in_reply_to_status'] = null;
}
if ($status['created_at'] == $status['edited_at']) {
$status['edited_at'] = null;
}
return $status;
}
}