]> git.mxchange.org Git - friendica.git/commitdiff
Update moved method Item::performLike() with DateTypeFormat
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 2 Feb 2018 19:34:41 +0000 (14:34 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 3 Feb 2018 13:56:55 +0000 (08:56 -0500)
- Update use list

src/Model/Item.php

index 7ba6a42e9caf104b2c9f8fe188f94e5975266821..d83546e340a2f3da2116ca05188cd6a0898caf0b 100644 (file)
@@ -23,7 +23,6 @@ use Friendica\Object\Image;
 use Friendica\Protocol\Diaspora;
 use Friendica\Protocol\OStatus;
 use Friendica\Util\DateTimeFormat;
-use Friendica\Util\Temporal;
 use dba;
 use Text_LanguageDetect;
 
@@ -1776,7 +1775,7 @@ class Item extends BaseObject
                        $like_item = $existing_like[0];
 
                        // Already voted, undo it
-                       $fields = ['deleted' => true, 'unseen' => true, 'changed' => datetime_convert()];
+                       $fields = ['deleted' => true, 'unseen' => true, 'changed' => DateTimeFormat::utcNow()];
                        dba::update('item', $fields, ['id' => $like_item['id']]);
 
                        // Clean up the Diaspora signatures for this like