• Purchasing a license grants permission to use the software and to get Tech Support. A license purchase doesn't grant customization support.

mark upload as NSFW with api

novexx

Founder license
License owner
If you change in routes.api.php the code to that:

$uploaded_id = CHV\Image::uploadToWebsite($source, $_REQUEST['username'], $_REQUEST['params']);

You can set in a requests the $params['nsfw'] = true; and the image should be nsfw marked.
 

imgtaxi

New Member
$params = array(
'nsfw' => '1',
'show_nsfw_listings' => '1',
'album_id' => '7'
);

$uploaded_id = CHV\Image::uploadToWebsite($source, 'username',$params);
 
Top