Fix falsely-raised PostChangedException
This commit is contained in:
parent
a9e79e90f9
commit
dcc57f11c4
@ -128,7 +128,7 @@ class Post:
|
||||
pic_json = self._context.get_json("p/{0}/".format(self.shortcode), params={})
|
||||
self._full_metadata_dict = pic_json['entry_data']['PostPage'][0]['graphql']['shortcode_media']
|
||||
self._rhx_gis_str = pic_json['rhx_gis']
|
||||
if self.mediaid != self._full_metadata_dict['id']:
|
||||
if self.shortcode != self._full_metadata_dict['shortcode']:
|
||||
self._node.update(self._full_metadata_dict)
|
||||
raise PostChangedException
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user