From 95a852eb43adc2ec4f6e4b9e0a029b6921699c39 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Wed, 12 Jun 2024 20:27:06 +0200 Subject: [PATCH] Clean up legacy api inconsistency --- app/adapters/telegram_adapter/outbound/photo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adapters/telegram_adapter/outbound/photo.rb b/app/adapters/telegram_adapter/outbound/photo.rb index 89c371c2a..70d2544aa 100644 --- a/app/adapters/telegram_adapter/outbound/photo.rb +++ b/app/adapters/telegram_adapter/outbound/photo.rb @@ -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 : ''