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
1 changed files with 4 additions and 0 deletions

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;
}
}