]> git.mxchange.org Git - friendica.git/commitdiff
add a comment as explanation for #3737
authorrabuzarus <rabuzarus@t-online.de>
Wed, 27 Sep 2017 12:15:45 +0000 (14:15 +0200)
committerrabuzarus <rabuzarus@t-online.de>
Wed, 27 Sep 2017 12:15:45 +0000 (14:15 +0200)
object/Item.php

index ebb53b47a7d4bb3998ff016189748bb09b3d94ed..495a4100cf355e0570449cb7922cc71aeab32dd4 100644 (file)
@@ -96,6 +96,11 @@ class Item extends BaseObject {
 
                $item = $this->get_data();
                $edited = false;
+               // If the time between "created" and "editet" differes we add 
+               // a notices that the post was editet.
+               // Note: In some networks reshared items seem to have (sometimes) a difference
+               // between creation time and edit time of a second. Thats why we add the notice
+               // only if the difference is more than 1 second.
                if (abs(strtotime($item['created']) - strtotime($item['edited'])) > 1) {
                        $edited = array(
                                'label'    => t('This entry was edited'),