mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
The new tag table should work for feeds no as well
This commit is contained in:
parent
010491e0b0
commit
9a0d2c9e0c
3 changed files with 27 additions and 8 deletions
|
@ -170,16 +170,12 @@ class Processor
|
|||
*/
|
||||
public static function updateItem($activity)
|
||||
{
|
||||
$item = Item::selectFirst(['uri', 'uri-id', 'guid', 'thr-parent', 'gravity'], ['uri' => $activity['id']]);
|
||||
$item = Item::selectFirst(['uri', 'uri-id', 'thr-parent', 'gravity'], ['uri' => $activity['id']]);
|
||||
if (!DBA::isResult($item)) {
|
||||
Logger::warning('Unknown item', ['uri' => $activity['id']]);
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($item['uri-id'])) {
|
||||
$item['uri-id'] = ItemURI::insert(['uri' => $item['uri'], 'guid' => $item['guid']]);
|
||||
}
|
||||
|
||||
$item['changed'] = DateTimeFormat::utcNow();
|
||||
$item['edited'] = DateTimeFormat::utc($activity['updated']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue