Fix falsely-raised PostChangedException

This commit is contained in:
Alexander Graf 2019-02-10 20:55:07 +01:00
parent a9e79e90f9
commit dcc57f11c4

View File

@ -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