mark upload as NSFW with api

blackjack

Core license
License owner
Joined
Nov 23, 2016
Messages
48
Points
58
hi,

how can i mark a upload with the api as nsfw upload? can you explain it?

thanks
 

novexx

Founder license
License owner
Joined
Dec 7, 2010
Messages
43
Points
58
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.