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:
parent
5de36fd8d7
commit
43a03b1c7b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user