We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89af770 commit 0613453Copy full SHA for 0613453
1 file changed
plugins/imgur.py
@@ -13,6 +13,8 @@
13
# yes, it's kinda dirty, but it works :)
14
ImgurClient.logged_in = lambda x: None
15
16
+NO_NSFW = False
17
+
18
19
def get_items(text):
20
if text:
@@ -37,6 +39,9 @@ def get_items(text):
37
39
reddit_search = False
38
40
items = imgur_api.gallery()
41
42
+ if NO_NSFW:
43
+ items = [item for item in items if not item.nsfw]
44
45
return items, reddit_search
46
47
0 commit comments