fix: Update tweet character count logic (#2709)

This commit is contained in:
Pranav Raj S
2021-08-02 16:07:30 +05:30
committed by GitHub
parent d88e3e3596
commit faf104c1fe
10 changed files with 174 additions and 38 deletions

View File

@@ -29,6 +29,8 @@ class Twitter::SendOnTwitterService < Base::SendOnChannelService
end
def screen_name
return "@#{reply_to_message.inbox.name}" if reply_to_message.outgoing?
"@#{reply_to_message.sender&.additional_attributes.try(:[], 'screen_name') || ''}"
end