Compare commits

...

2 Commits
dev ... master

Author SHA1 Message Date
rulingcom 1b1157f232 video other profile members 2025-11-12 21:09:42 +08:00
rulingcom 409dbf1e97 fix for no hashtags present 2025-10-23 20:20:16 +08:00
3 changed files with 12 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|

View File

@ -202,6 +202,10 @@ class VideoImage
I18n.t("announcement.status.hidden")
end
def get_other_member_profiles_names_for_frontend
MemberProfile.find(self.other_member_profiles).map{|m,n| {"name" => m.name}} rescue []
end
def get_snapshot_url
# self.video_snapshot.url rescue ""
self.is_youtube ? self.file.url : (self.video_snapshot.url)

View File

@ -66,6 +66,13 @@
<span><img src="<%= view_icon_url %>" alt="<%= view_count_trans %>">x <%= view_count %></span>
</div>
</div>
<div class="other_member_profiles">
<% video_image.get_other_member_profiles_names_for_frontend.each do |profile| %>
<div class="other_profile">
<span class="other_profile_name"><%= profile["name"] %></span>
</div>
<% end %>
</div>
<style>
.video_box_wrap{
height: 0;