fix: re-enable the reddit blocks based on client id and secret

This commit is contained in:
Nicholas Tindle 2025-01-06 18:42:20 -06:00
parent 1c6b33d9fb
commit 2b5c94d508
No known key found for this signature in database
GPG Key ID: C4A2154D91363A47

View File

@ -99,10 +99,10 @@ class GetRedditPostsBlock(Block):
id="c6731acb-4285-4ee1-bc9b-03d0766c370f",
description="This block fetches Reddit posts from a defined subreddit name.",
categories={BlockCategory.SOCIAL},
# disabled=(
# not settings.secrets.reddit_client_id
# or not settings.secrets.reddit_client_secret
# ),
disabled=(
not settings.secrets.reddit_client_id
or not settings.secrets.reddit_client_secret
),
input_schema=GetRedditPostsBlock.Input,
output_schema=GetRedditPostsBlock.Output,
test_credentials=TEST_CREDENTIALS,
@ -182,10 +182,10 @@ class PostRedditCommentBlock(Block):
categories={BlockCategory.SOCIAL},
input_schema=PostRedditCommentBlock.Input,
output_schema=PostRedditCommentBlock.Output,
# disabled=(
# not settings.secrets.reddit_client_id
# or not settings.secrets.reddit_client_secret
# ),
disabled=(
not settings.secrets.reddit_client_id
or not settings.secrets.reddit_client_secret
),
test_credentials=TEST_CREDENTIALS,
test_input={
"credentials": TEST_CREDENTIALS_INPUT,