2022.09-rc
Michael Vogel 2020-12-01 23:54:49 +01:00
rodzic 61ecdf789c
commit b3f71d174c
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

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