fix: Fixing message create issue for deleted instagram story (#4979)

This commit is contained in:
Tejaswini Chile 2022-07-06 17:18:36 +05:30 committed by GitHub
parent 2a899a633a
commit 4375a7646e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,9 @@ class Messages::Messenger::MessageBuilder
def fetch_story_link(attachment)
message = attachment.message
result = get_story_object_from_source_id(message.source_id)
return if result.blank?
story_id = result['story']['mention']['id']
story_sender = result['from']['username']
message.content_attributes[:story_sender] = story_sender