]> git.mxchange.org Git - friendica.git/commitdiff
"edited_at" must only be displayed when the entry had been updated
authorMichael <heluecht@pirati.ca>
Tue, 14 Mar 2023 16:07:54 +0000 (16:07 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 14 Mar 2023 16:07:54 +0000 (16:07 +0000)
src/Object/Api/Mastodon/Status.php

index 9a077d62dd3cbeb54e85252789ab1a35e702085d..8430601f9830a313b0e21c8299b0e031f0616d0d 100644 (file)
@@ -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;
        }
 }