Allow upload of video
This commit is contained in:
@@ -11,7 +11,7 @@ module Adamantium
|
||||
include Deps["settings"]
|
||||
include Dry::Monads[:result]
|
||||
|
||||
VALID_UPLOAD_TYPES = %i[jpeg jpg png gif]
|
||||
VALID_UPLOAD_TYPES = %i[jpeg jpg png gif mp4]
|
||||
|
||||
def call(file:)
|
||||
mime = FileMagic.new
|
||||
|
@@ -26,7 +26,7 @@ module Adamantium
|
||||
end
|
||||
|
||||
def prefix_emoji
|
||||
name ? "📝" : "📯"
|
||||
name ? "" : "📯"
|
||||
end
|
||||
|
||||
def display_title
|
||||
|
@@ -2,7 +2,7 @@ div class="mb-8 h-entry"
|
||||
h3 class="text-xl font-semibold text-blue-600 mb-2"
|
||||
a class="u-url border-b-2 border-transparent hover:border-blue-600 hover:border-b-2" href="/post/#{post.slug}"
|
||||
= post.display_title
|
||||
div class="e-content p-name text-base text-gray-800 dark:text-gray-200"
|
||||
div class="e-content p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200"
|
||||
== post.excerpt
|
||||
== render :tags, tags: post.tags
|
||||
|
||||
|
@@ -11,7 +11,7 @@ module Adamantium
|
||||
end
|
||||
|
||||
expose :posts do
|
||||
post_repo.post_listing(limit: 10).map do |post|
|
||||
post_repo.post_listing(limit: 5).map do |post|
|
||||
Decorators::Posts::Decorator.new(post)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user