Skip to content

Commit

Permalink
fix: markdown doesn't seem to work in description
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Jun 11, 2023
1 parent 68b25bc commit d35fb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blackout.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def private_subreddit(subreddit):
subreddit.contributor.remove(contributor)

# new description can be set via the environment, or will default to a message about the blackout with relevant links
new_description = f"/r/{subreddit.display_name} {environ.get('SUBREDDIT_DESCRIPTION') or 'is now private to protest Reddits API pricing changes and the death of 3rd party apps. [Click here to find out why we have gone dark](https://www.theverge.com/2023/6/5/23749188/reddit-subreddit-private-protest-api-changes-apollo-charges). [You can also find a list of other subs that are going dark here](https://reddark.untone.uk/).'}"
new_description = f"/r/{subreddit.display_name} {environ.get('SUBREDDIT_DESCRIPTION') or 'is now private to protest Reddits API pricing changes and the death of 3rd party apps. Find out why we have gone dark here: https://www.theverge.com/2023/6/5/23749188/reddit-subreddit-private-protest-api-changes-apollo-charges. You can also find a list of other subs that are going dark here: https://reddark.untone.uk/'}"

# set the subreddit to private
subreddit.mod.update(public_description=new_description,
Expand Down

0 comments on commit d35fb6c

Please sign in to comment.