]> git.mxchange.org Git - friendica.git/blob - src/Worker/SetItemContentID.php
Update does work now
[friendica.git] / src / Worker / SetItemContentID.php
1 <?php
2 /**
3  * @file src/Worker/SetItemContentID.php
4  * @brief This script sets the "icid" value in the item table if it couldn't set before.
5  *
6  * This script is started from mod/item.php to fix timing problems.
7  */
8
9 namespace Friendica\Worker;
10
11 use Friendica\Model\Item;
12
13 class SetItemContentID {
14         public static function execute($uri = '') {
15                 if (empty($uri)) {
16                         return;
17                 }
18
19                 Item::setICIDforURI($uri);
20         }
21 }