+ if ($item['uid'] == 0) {
+ $stored = Item::storeForUserByUriId($item['uri-id'], local_user());
+ if (!empty($stored)) {
+ $item = Post::selectFirst(['starred'], ['id' => $stored]);
+ if (!DBA::isResult($item)) {
+ throw new HTTPException\NotFoundException();
+ }
+ $itemId = $stored;
+ } else {
+ throw new HTTPException\NotFoundException();
+ }
+ }
+