From 5ee2ff25c5190ab707ebcc522b0d1ea477156ef2 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 29 Jan 2023 13:18:35 +1100 Subject: [PATCH] Get body from mastodon response --- lib/adamantium/syndication/mastodon.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adamantium/syndication/mastodon.rb b/lib/adamantium/syndication/mastodon.rb index 4e66f78..985e290 100644 --- a/lib/adamantium/syndication/mastodon.rb +++ b/lib/adamantium/syndication/mastodon.rb @@ -34,8 +34,8 @@ module Adamantium }) if response.code >= 200 && response.code < 300 - status = response.message - logger.info("Syndicated to Mastodon: #{response.message}") + status = response.body + logger.info("Syndicated to Mastodon: #{response.body}") Success("#{mastodon_server}/#{status[:id]}") else logger.info("Failed to syndicate to Mastodon: #{response.message}")