2022.09-rc
Michael 2020-12-01 23:04:04 +00:00
rodzic b3f71d174c
commit a283b1183b
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -93,10 +93,14 @@ class Delayed
Logger::notice('Post stored', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id']]);
// It should always contain an URI since this is needed to create a delayed post entry
if (!empty($item['uri'])) {
$result = self::delete($item['uri']);
Logger::notice('Delayed post entry deleted', ['result' => $result, 'uri' => $item['uri']]);
}
if (!empty($id) && (!empty($taglist) || !empty($attachments))) {
$feeditem = Item::selectFirst(['uri-id', 'uri'], ['id' => $id]);
$result = self::delete($feeditem['uri']);
Logger::notice('Delayed post entry deleted', ['result' => $result, 'item' => $feeditem]);
$feeditem = Item::selectFirst(['uri-id'], ['id' => $id]);
foreach ($taglist as $tag) {
Tag::store($feeditem['uri-id'], Tag::HASHTAG, $tag);