add a comment as explanation for #3737

This commit is contained in:
rabuzarus 2017-09-27 14:15:45 +02:00
parent 3e0b76f478
commit b4d203947b

View file

@ -96,6 +96,11 @@ class Item extends BaseObject {
$item = $this->get_data(); $item = $this->get_data();
$edited = false; $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) { if (abs(strtotime($item['created']) - strtotime($item['edited'])) > 1) {
$edited = array( $edited = array(
'label' => t('This entry was edited'), 'label' => t('This entry was edited'),