Jump to content

Community

Porn in stock photos?


Square Wheels
 Share

Recommended Posts

According to the Pixabay API documentation, there's a "safesearch" parameter:

Quote

 

safesearch bool A flag indicating that only images suitable for all ages should be returned.
Accepted values: "true", "false"
Default: "false"

 

It defaults to "false." This would be a nice option the configuration of the integration.

Edited by Paul E.
Link to comment
Share on other sites

While we're adding options to the "Community enhancement," lang should be considered to add for the benefit of those non-English speaking communities.

lang str Language code of the language to be searched in.
Accepted values: cs, da, de, en, es, fr, id, it, hu, nl, no, pl, pt, ro, sk, fi, sv, tr, vi, th, bg, ru, el, ja, ko, zh
Default: "en"
Link to comment
Share on other sites

I threw this plugin together. Use at your own risk. It inserts the safesearch = true parameter into the API call (assuming Pixabay integration is turned on). This could be extended by whomever to add language as well. Thanks to @bfarber for the "hard way" clue.

Temporary Fix to Enable Safesearch for Pixabay.xml

Edited by Paul E.
Link to comment
Share on other sites

4 hours ago, xtech said:

Btw: how hard is to get approval from Pixabay? I've applied for it yesterday, still no answer from them.

It's a bit confusing. There is an application process, but you don't need to do that for this integration. When you go to the page linked in the ACP and create an account, it has what appears to be a sample API key embedded in that page, but that's your actual key. It took like three cups of coffee for me to figure out what was going on there.

Link to comment
Share on other sites

@xtech: here's a screenshot of where you can find the key on the documentation page (linked from ACP > Settings > Community Enhancements > Pixabay > Configure). After you create an account/login, which has no approval process, you'll see a value in the green box in the Parameters listing under API. That's the actual API key for you. I've pixelated it in the screenshot below.

There's no obvious HERE'S YOUR API KEY call out.

image.png.3d76998ad163b8400767237a60413442.png

21 minutes ago, Matt said:

We'll sort out the safe search option for 4.5.3.

If you could add another option that returns only the naughty stuff, that would be appreciated. Please enable said option here. I understand that's not an option with the Pixabay API, but I'm confident you'll find a way. Thanks. 🤓

pervert GIF

Link to comment
Share on other sites

1 hour ago, Paul E. said:

@xtech: here's a screenshot of where you can find the key on the documentation page (linked from ACP > Settings > Community Enhancements > Pixabay > Configure). After you create an account/login, which has no approval process, you'll see a value in the green box in the Parameters listing under API. That's the actual API key for you. I've pixelated it in the screenshot below.

 

Thank you a lot!! My eyes had automatically igrnored that green API key box...

I thought i needed to click:

image.thumb.png.5bebc13a5c941212d1ca46e7d085da65.png

Link to comment
Share on other sites

On 9/17/2020 at 5:46 PM, Paul E. said:

I threw this plugin together. Use at your own risk. It inserts the safesearch = true parameter into the API call (assuming Pixabay integration is turned on). This could be extended by whomever to add language as well. Thanks to @bfarber for the "hard way" clue.

Temporary Fix to Enable Safesearch for Pixabay.xml 1.52 kB · 5 downloads

FYI, this is no longer needed as of 4.5.3+. It won't break anything, yet is now a configurable option in the ACP > Community Enhancements > Pixabay

Link to comment
Share on other sites

  • Management
On 9/19/2020 at 1:33 AM, ahc said:

Since when is all nudity classed as porn?  😆

Even with a safe search filter, there will be nudity. 

Absolutely, art has always used nudes to depict the human form.

Still a bit of a surprise when you're looking for photos of coffee. 😂😂😂

As Paul mentioned, 4.5.3 adds a safe search option (on by default). It won't catch everything, but it'll reduce the chances your kids will spot you surfing for naked pictures on your forum.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy