Skip to content

Commit

Permalink
Fix instagram share links (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic authored Dec 13, 2024
1 parent 57b1149 commit 27aac4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/integrations/instagram/aiograpi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def get_integration_data(
) -> typing.Tuple[bot_constants.Integration, str, typing.Optional[int]]:
if 'stories' in url:
pk = self.client.story_pk_from_url(url)
elif '/share/reel/' in url:
elif '/share/' in url:
async with aiohttp.ClientSession() as session:
async with session.get(url=url) as resp:
pk = await self.client.media_pk_from_url(str(resp.url))
Expand Down

0 comments on commit 27aac4c

Please sign in to comment.