Permalink
Browse files

As hubot is frequently used in business settings, turn safe search to…

… maximum (active) setting out of the box.
  • Loading branch information...
1 parent 65ce16a commit dd1d2bf11d4e340696e19a2b4374d4777fffeb25 @kylev 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

1 comment on commit dd1d2bf

@brupm
brupm commented on dd1d2bf May 17, 2012

Worst commit eva :)

Please sign in to comment.