This commit is contained in:
2025-12-30 15:04:46 +09:00
parent d224ccef4c
commit 599fa65428
4 changed files with 75 additions and 7 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ namespace :nico do
unless post
title = datum['title']
url = "https://www.nicovideo.jp/watch/#{ datum['code'] }"
thumbnail_base = fetch_thumbnail.(url) || '' rescue ''
thumbnail_base = fetch_thumbnail.(url) rescue nil
post = Post.new(title:, url:, thumbnail_base:, uploaded_user: nil)
if thumbnail_base.present?
post.thumbnail.attach(