1
1
Fork 0

Added logging

This commit is contained in:
Michael Vogel 2020-12-01 23:54:49 +01:00
parent 61ecdf789c
commit b3f71d174c

View file

@ -67,7 +67,7 @@ class Delayed
}
/**
* Undocumented function
* Check if an entry exists
*
* @param string $uri
*
@ -95,7 +95,8 @@ class Delayed
if (!empty($id) && (!empty($taglist) || !empty($attachments))) {
$feeditem = Item::selectFirst(['uri-id', 'uri'], ['id' => $id]);
self::delete($feeditem['uri']);
$result = self::delete($feeditem['uri']);
Logger::notice('Delayed post entry deleted', ['result' => $result, 'item' => $feeditem]);
foreach ($taglist as $tag) {
Tag::store($feeditem['uri-id'], Tag::HASHTAG, $tag);