Upping version

This commit is contained in:
Michael Lazar
2017-12-05 00:45:36 -05:00
parent 5d8a128e8a
commit ce90244b7a
7 changed files with 60 additions and 17 deletions

View File

@@ -2310,13 +2310,17 @@ class MultiredditMixin(AuthenticatedReddit):
"""
url = self.config['multireddit_about'].format(user=self.user.name,
multi=name)
self.http.headers['x-modhash'] = self.modhash
# The modhash isn't necessary for OAuth requests
if not self._use_oauth:
self.http.headers['x-modhash'] = self.modhash
try:
self.request(url, data={}, method='DELETE', *args, **kwargs)
finally:
del self.http.headers['x-modhash']
if not self._use_oauth:
del self.http.headers['x-modhash']
@decorators.restrict_access(scope='subscribe')
def edit_multireddit(self, *args, **kwargs):
"""Edit a multireddit, or create one if it doesn't already exist.