fix: Fixing message create issue for deleted instagram story (#4979)
This commit is contained in:
parent
2a899a633a
commit
4375a7646e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue