Update moved method Item::performLike() with DateTypeFormat
- Update use list
This commit is contained in:
parent
59a5b13d2a
commit
593774b613
|
@ -23,7 +23,6 @@ use Friendica\Object\Image;
|
||||||
use Friendica\Protocol\Diaspora;
|
use Friendica\Protocol\Diaspora;
|
||||||
use Friendica\Protocol\OStatus;
|
use Friendica\Protocol\OStatus;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Temporal;
|
|
||||||
use dba;
|
use dba;
|
||||||
use Text_LanguageDetect;
|
use Text_LanguageDetect;
|
||||||
|
|
||||||
|
@ -1776,7 +1775,7 @@ class Item extends BaseObject
|
||||||
$like_item = $existing_like[0];
|
$like_item = $existing_like[0];
|
||||||
|
|
||||||
// Already voted, undo it
|
// 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']]);
|
dba::update('item', $fields, ['id' => $like_item['id']]);
|
||||||
|
|
||||||
// Clean up the Diaspora signatures for this like
|
// Clean up the Diaspora signatures for this like
|
||||||
|
|
Loading…
Reference in a new issue