diff options
Diffstat (limited to 'src/geddit.js')
-rw-r--r-- | src/geddit.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/geddit.js b/src/geddit.js index d81cedf..87a000b 100644 --- a/src/geddit.js +++ b/src/geddit.js | |||
@@ -241,13 +241,8 @@ class Geddit { | |||
241 | options.q = query; | 241 | options.q = query; |
242 | options.type = "link"; | 242 | options.type = "link"; |
243 | 243 | ||
244 | const params = { | ||
245 | limit: 25, | ||
246 | include_over_18: true, | ||
247 | }; | ||
248 | |||
249 | return await fetch( | 244 | return await fetch( |
250 | `${this.host}/search.json?${new URLSearchParams(Object.assign(params, options))}`, | 245 | `${this.host}/search.json?${new URLSearchParams(options)}`, |
251 | ) | 246 | ) |
252 | .then((res) => res.json()) | 247 | .then((res) => res.json()) |
253 | .then((json) => json.data) | 248 | .then((json) => json.data) |