Skip to content

Commit

Permalink
Merge pull request #1899 from tactilenews/fix_photo_caption_too_long_…
Browse files Browse the repository at this point in the history
…flow

Clean up legacy api inconsistency
  • Loading branch information
mattwr18 authored Jun 13, 2024
2 parents 68e9626 + 95a852e commit e6dcc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/adapters/telegram_adapter/outbound/photo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def perform(contributor_id:, media:, message:)

def optional_caption(index)
if message.text.length >= 1024
TelegramAdapter::Outbound::Text.perform_later(text: message.text, telegram_id: telegram_id, message: message)
TelegramAdapter::Outbound::Text.perform_later(text: message.text, contributor_id: message.recipient.id, message: message)
''
else
index.zero? ? message.text : ''
Expand Down

0 comments on commit e6dcc73

Please sign in to comment.