From: rabuzarus Date: Wed, 27 Sep 2017 12:15:45 +0000 (+0200) Subject: add a comment as explanation for #3737 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b4d203947b5003ecf5e3a14ee7f2d913274cda1f;p=friendica.git add a comment as explanation for #3737 --- diff --git a/object/Item.php b/object/Item.php index ebb53b47a7..495a4100cf 100644 --- a/object/Item.php +++ b/object/Item.php @@ -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'),