Skip to content

Commit 3059e15

Browse files
committed
feat(#4): Allow marking feeds nsfw
1 parent 0a94db2 commit 3059e15

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ feeds:
8888
# - 'example2' # the feed contains posts from example2, which we want. So we join example2 to get posts that are in both example and example2.
8989
# exclude:
9090
# - 'example3' # the feed contains posts from example3, which we don't want. So we exclude example3 to get posts that are in example only.
91-
#
91+
# nsfw: false # set to true if the feed is nsfw. Defaults to false if not specified
92+
#
9293
# example2:
9394
# url: 'https://example.com/rss2'
9495
#

main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ const bot = new LemmyBot.LemmyBot({
333333
body: body,
334334
url: item.link || undefined,
335335
community_id: communityId,
336+
nsfw: feed.nsfw,
336337
});
337338
} catch (e) {
338339
console.error(e);

0 commit comments

Comments
 (0)