mirror of
https://github.com/friendica/friendica
synced 2024-11-19 17:03:41 +00:00
New worker to fix empty icid
This commit is contained in:
parent
6b31e72905
commit
4807797eaf
1 changed files with 21 additions and 0 deletions
21
src/Worker/SetItemContentID.php
Normal file
21
src/Worker/SetItemContentID.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* @file src/Worker/SetItemContentID.php
|
||||
* @brief This script sets the "icid" value in the item table if it couldn't set before.
|
||||
*
|
||||
* This script is started from mod/item.php to fix timing problems.
|
||||
*/
|
||||
|
||||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Model\Item;
|
||||
|
||||
class SetItemContentID {
|
||||
public static function execute($uri = '') {
|
||||
if (empty($uri)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Item::setICIDforURI($uri);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue