Permalink
Browse files

Merge pull request #253 from kylev/patch-1

As hubot is frequently used in business settings, turn safe search on
  • Loading branch information...
2 parents 45cd7a9 + 35c6499 commit d9f2937c866ed6b68a3382b42cb8905b536833c9 @atmos atmos committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/google-images.coffee
@@ -29,7 +29,7 @@ module.exports = (robot) ->
imageMe = (msg, query, cb) ->
msg.http('http://ajax.googleapis.com/ajax/services/search/images')
- .query(v: "1.0", rsz: '8', q: query)
+ .query(v: "1.0", rsz: '8', q: query, safe: 'active')
.get() (err, res, body) ->
images = JSON.parse(body)
images = images.responseData.results

0 comments on commit d9f2937

Please sign in to comment.