{"action":"created","issue":{"url":"https://api.github.com/repos/praw-dev/praw/issues/409","labels_url":"https://api.github.com/repos/praw-dev/praw/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/praw-dev/praw/issues/409/comments","events_url":"https://api.github.com/repos/praw-dev/praw/issues/409/events","html_url":"https://github.com/praw-dev/praw/issues/409","id":74824350,"number":409,"title":"update_settings to change post type messes up sidebar and submit text","user":{"login":"spinnelein","id":9204229,"avatar_url":"https://avatars.githubusercontent.com/u/9204229?v=3","gravatar_id":"","url":"https://api.github.com/users/spinnelein","html_url":"https://github.com/spinnelein","followers_url":"https://api.github.com/users/spinnelein/followers","following_url":"https://api.github.com/users/spinnelein/following{/other_user}","gists_url":"https://api.github.com/users/spinnelein/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnelein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnelein/subscriptions","organizations_url":"https://api.github.com/users/spinnelein/orgs","repos_url":"https://api.github.com/users/spinnelein/repos","events_url":"https://api.github.com/users/spinnelein/events{/privacy}","received_events_url":"https://api.github.com/users/spinnelein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-10T03:57:18Z","updated_at":"2015-05-25T18:55:12Z","closed_at":"2015-05-25T18:55:12Z","body":"2.1.21\r\n\r\nb.update_settings(b.get_subreddit('politics'),content_options='self')\r\n\r\nProblem is in the update_settings function (line 1607 in __init__.py)\r\n\r\n    def update_settings(self, subreddit, **kwargs):\r\n        \"\"\"Update only the given settings for the given subreddit.\r\n\r\n        The settings to update must be given by keyword and match one of the\r\n        parameter names in `set_settings`.\r\n\r\n        :returns: The json response from the server.\r\n\r\n        \"\"\"\r\n        settings = self.get_settings(subreddit)\r\n        settings.update(kwargs)\r\n        del settings['subreddit_id']\r\n        return self.set_settings(subreddit, **settings)\r\n\r\nWhen it does get_settings, it pulls the sidebar and submit text, but reddit presents them in an HTML format where ampersand is &amp ; and nonbreaking space is nbsp; etc. \r\n\r\nSo instead of only changing the setting you want changed, it also updates the sidebar and submit text with messed up HTML. \r\n"},"comment":{"url":"https://api.github.com/repos/praw-dev/praw/issues/comments/105288972","html_url":"https://github.com/praw-dev/praw/issues/409#issuecomment-105288972","issue_url":"https://api.github.com/repos/praw-dev/praw/issues/409","id":105288972,"user":{"login":"bboe","id":48100,"avatar_url":"https://avatars.githubusercontent.com/u/48100?v=3","gravatar_id":"","url":"https://api.github.com/users/bboe","html_url":"https://github.com/bboe","followers_url":"https://api.github.com/users/bboe/followers","following_url":"https://api.github.com/users/bboe/following{/other_user}","gists_url":"https://api.github.com/users/bboe/gists{/gist_id}","starred_url":"https://api.github.com/users/bboe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboe/subscriptions","organizations_url":"https://api.github.com/users/bboe/orgs","repos_url":"https://api.github.com/users/bboe/repos","events_url":"https://api.github.com/users/bboe/events{/privacy}","received_events_url":"https://api.github.com/users/bboe/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T18:55:12Z","updated_at":"2015-05-25T18:55:12Z","body":"Closing issue at is should be resolved in PRAW3. Please reopen if it is not."}}