Allow upload of video

This commit is contained in:
2023-02-19 16:29:25 +11:00
parent c5d8e435a7
commit 4203fca8cd
5 changed files with 20 additions and 4 deletions

View File

@@ -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

View File

@@ -26,7 +26,7 @@ module Adamantium
end
def prefix_emoji
name ? "📝" : "📯"
name ? "" : "📯"
end
def display_title

View File

@@ -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

View File

@@ -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