From 6ffecd2b74726476df00ec334e45f0d7638056ca Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 14 Mar 2023 16:07:54 +0000 Subject: [PATCH] "edited_at" must only be displayed when the entry had been updated --- src/Object/Api/Mastodon/Status.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Object/Api/Mastodon/Status.php b/src/Object/Api/Mastodon/Status.php index 9a077d62dd..8430601f98 100644 --- a/src/Object/Api/Mastodon/Status.php +++ b/src/Object/Api/Mastodon/Status.php @@ -213,6 +213,10 @@ class Status extends BaseDataTransferObject $status['in_reply_to_status'] = null; } + if ($status['created_at'] == $status['edited_at']) { + unset($status['edited_at']); + } + return $status; } }