Skip to content

Commit

Permalink
Corrected request_thumbnail calls
Browse files Browse the repository at this point in the history
  • Loading branch information
j0yu committed Jun 2, 2020
1 parent e54da65 commit 1d20311
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/activity_stream/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ def request_activity_thumbnails(self, activity_id):
if entity.get("user.HumanUser.image") and self._sg_data_retriever:
uid = self._sg_data_retriever.request_thumbnail(
entity["user.HumanUser.image"],
entity["user"]["id"],
entity["user"]["type"],
entity["user"]["id"],
"image",
load_image=True,
)
Expand All @@ -477,8 +477,8 @@ def request_activity_thumbnails(self, activity_id):
elif entity.get("user.ClientUser.image") and self._sg_data_retriever:
uid = self._sg_data_retriever.request_thumbnail(
entity["user.ClientUser.image"],
entity["user"]["id"],
entity["user"]["type"],
entity["user"]["id"],
"image",
load_image=True,
)
Expand All @@ -490,8 +490,8 @@ def request_activity_thumbnails(self, activity_id):
elif entity.get("user.ApiUser.image") and self._sg_data_retriever:
uid = self._sg_data_retriever.request_thumbnail(
entity["user.ApiUser.image"],
entity["user"]["id"],
entity["user"]["type"],
entity["user"]["id"],
"image",
load_image=True,
)
Expand Down

0 comments on commit 1d20311

Please sign in to comment.