Pass syndication request through
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user