Pass syndication request through

This commit is contained in:
2023-01-29 11:52:29 +11:00
parent 8c4fae3df5
commit c545a2ae45
4 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ module Adamantium
attribute :category, Types::Array.of(Types::Coercible::String)
attribute :published_at, Types::Nominal::DateTime.optional
attribute :post_type, Types::Coercible::String
attribute :syndicate_to, Types::Array.of(Types::Coercible::String)
end
end
end

View File

@@ -9,6 +9,7 @@ module Adamantium
attribute :category, Types::Array.of(Types::Coercible::String)
attribute :published_at, Types::Nominal::DateTime.optional
attribute :post_type, Types::Coercible::String
attribute :syndicate_to, Types::Array.of(Types::Coercible::String)
end
end
end

View File

@@ -25,5 +25,8 @@ module Adamantium
setting :micropub_authorization_endpoint
setting :micropub_token_endpoint
setting :mastodon_token, default: nil
setting :mastodon_server, default: nil
end
end

View File

@@ -51,6 +51,7 @@ module Adamantium
new_params[:h] = "entry"
new_params[:post_type] = post_type
new_params[:action] = params[:action]
new_params[:syndicate_to] = params["syndicate-to"]
publish_time = params[:published_at] || Time.now