feat: Instagram story replies will display the original story link (#6846)

This commit is contained in:
Tejaswini Chile
2023-04-26 15:27:07 +05:30
committed by GitHub
parent 5d30dabf97
commit 3c2d6faf68
7 changed files with 112 additions and 3 deletions

View File

@@ -198,6 +198,17 @@ class Message < ApplicationRecord
outgoing? && human_response? && not_created_by_automation? && !private?
end
def save_story_info(story_info)
self.content_attributes = content_attributes.merge(
{
story_id: story_info['id'],
story_sender: inbox.channel.instagram_id,
story_url: story_info['url']
}
)
save!
end
private
def ensure_content_type