1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-26 01:00:20 +02:00

use video title as page description

This commit is contained in:
zafer 2024-05-08 16:32:16 +03:00
parent 5de36fd8d7
commit 43a03b1c7b
3 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ defmodule AlgoraWeb.ChatLive do
defp apply_action(socket, :show, params) do
socket
|> assign(:page_title, socket.assigns.channel.name || params["channel_handle"])
|> assign(:page_description, socket.assigns.channel.tagline)
|> assign(:page_description, socket.assigns.video.title)
|> assign(:page_image, Library.get_thumbnail_url(socket.assigns.video))
end
end

View File

@ -153,7 +153,7 @@ defmodule AlgoraWeb.EmbedLive do
defp apply_action(socket, :show, params) do
socket
|> assign(:page_title, socket.assigns.channel.name || params["channel_handle"])
|> assign(:page_description, socket.assigns.channel.tagline)
|> assign(:page_description, socket.assigns.video.title)
|> assign(:page_image, Library.get_thumbnail_url(socket.assigns.video))
end
end

View File

@ -633,7 +633,7 @@ defmodule AlgoraWeb.VideoLive do
defp apply_action(socket, :show, params) do
socket
|> assign(:page_title, socket.assigns.channel.name || params["channel_handle"])
|> assign(:page_description, socket.assigns.channel.tagline)
|> assign(:page_description, socket.assigns.video.title)
|> assign(:page_image, Library.get_thumbnail_url(socket.assigns.video))
end