Add emoji to statuses
This commit is contained in:
@@ -11,6 +11,7 @@ module Micropub
|
||||
attribute :post_type, Types::Coercible::String
|
||||
attribute :syndicate_to, Types::Array.of(Types::Coercible::String)
|
||||
attribute :in_reply_to, Types::Coercible::String
|
||||
attribute :emoji, Types::Coercible::String
|
||||
attribute :photos, Types::Array.of(Types::Hash)
|
||||
attribute :location, Types::Coercible::String.optional
|
||||
end
|
||||
|
@@ -98,6 +98,7 @@ module Micropub
|
||||
slug: params[:slug] || params[:"mp-slug"],
|
||||
syndicate_to: Array(params[:properties][:"mp-syndicate-to"]) || [],
|
||||
in_reply_to: params[:properties][:"in-reply-to"] || nil,
|
||||
emoji: params[:properties][:emoji] || nil,
|
||||
photos: photos,
|
||||
location: params[:properties][:location]
|
||||
})
|
||||
@@ -121,6 +122,7 @@ module Micropub
|
||||
new_params.merge({
|
||||
syndicate_to: Array(params[:"mp-syndicate-to"]) || [],
|
||||
in_reply_to: params[:"in-reply-to"],
|
||||
emoji: params[:emoji],
|
||||
name: params[:name],
|
||||
slug: params[:slug] || params[:"mp-slug"],
|
||||
published_at: (params[:"post-status"] == "draft") ? nil : publish_time,
|
||||
|
@@ -13,6 +13,7 @@ module Micropub
|
||||
required(:photos).array(:hash)
|
||||
required(:location).maybe(:string)
|
||||
required(:in_reply_to).maybe(:string)
|
||||
required(:emoji).maybe(:string)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user