From af564f5174d1ffd3af3f7e635b650651e1f7411a Mon Sep 17 00:00:00 2001 From: Lars Lindqvist Date: Fri, 3 Aug 2018 19:25:57 +0200 Subject: [PATCH] Fix owner_profile for Profile.get_tagged_posts() --- instaloader/structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/structures.py b/instaloader/structures.py index 6cd987e..079be0c 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -612,7 +612,7 @@ class Profile: def get_tagged_posts(self) -> Iterator[Post]: """Retrieve all posts where a profile is tagged.""" self._obtain_metadata() - yield from (Post(self._context, node, self) for node in + yield from (Post(self._context, node, self if int(node['owner']['id']) == self.userid else None) for node in self._context.graphql_node_list("e31a871f7301132ceaab56507a66bbb7", {'id': self.userid}, 'https://www.instagram.com/{0}/'.format(self.username),