fix for no hashtags present

This commit is contained in:
rulingcom 2025-10-23 20:20:16 +08:00
parent 6f93538e60
commit 409dbf1e97
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class Admin::VideoProsController < OrbitAdminController
end
def create_get_video_tags(video)
new_tags = params["video_tags"].split(",")
new_tags = params["video_tags"].present? ? params["video_tags"].split(",") : []
tags = []
video.video_tags = []
new_tags.each do |tag|