Fix de-syndication

This commit is contained in:
2024-03-09 18:11:46 +11:00
parent 9f1a662191
commit 702933c008
2 changed files with 1 additions and 2 deletions

View File

@@ -87,7 +87,6 @@ module Adamantium
mastodon_server = settings.mastodon_server.split("@").first
response = HTTParty.delete("#{mastodon_server}api/v1/statuses/#{post_id}", {
headers: {
"Idempotency-Key": key,
Authorization: "Bearer #{mastodon_token}"
}
})

View File

@@ -13,7 +13,7 @@ module Admin
request = if target.to_sym == :mastodon
masto_id = post.syndication_sources[target].split("/").last
if masto_id == ""
if masto_id.nil?
Success()
else
mastodon.de_syndicate(post_id: masto_id)