]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Issue 8663: Prevent abusive behaviour when probing servers
[friendica.git] / mod / item.php
index 9994b1b31d39947fc35984df49b7fdf81b49f446..ad3351dd4a38e242b2ea766ad1904093e5e33670 100644 (file)
@@ -650,6 +650,7 @@ function item_post(App $a) {
                // We set the datarray ID to -1 because in preview mode the dataray
                // doesn't have an ID.
                $datarray["id"] = -1;
+               $datarray["uri-id"] = -1;
                $datarray["item_id"] = -1;
                $datarray["author-network"] = Protocol::DFRN;
 
@@ -720,6 +721,7 @@ function item_post(App $a) {
                if ($return_path) {
                        DI::baseUrl()->redirect($return_path);
                }
+
                throw new HTTPException\InternalServerErrorException(DI::l10n()->t('Item wasn\'t stored.'));
        }