From: Michael Date: Tue, 14 Mar 2023 16:07:54 +0000 (+0000) Subject: "edited_at" must only be displayed when the entry had been updated X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6ffecd2b74726476df00ec334e45f0d7638056ca;p=friendica.git "edited_at" must only be displayed when the entry had been updated --- 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; } }