]> git.mxchange.org Git - friendica.git/commitdiff
Items aren't modified when it happens within a second
authorMichael <heluecht@pirati.ca>
Tue, 26 Sep 2017 06:41:27 +0000 (06:41 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 26 Sep 2017 06:41:27 +0000 (06:41 +0000)
object/Item.php

index 816406e4eb866dfe1ae644cc5cdc64a0e8321de7..ebb53b47a7d4bb3998ff016189748bb09b3d94ed 100644 (file)
@@ -96,7 +96,7 @@ class Item extends BaseObject {
 
                $item = $this->get_data();
                $edited = false;
-               if (strcmp($item['created'], $item['edited'])<>0) {
+               if (abs(strtotime($item['created']) - strtotime($item['edited'])) > 1) {
                        $edited = array(
                                'label'    => t('This entry was edited'),
                                'date'     => datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r'),