show only your gists

This commit is contained in:
zack 2024-10-26 22:44:11 -04:00
parent b2f2f57029
commit 221c3ae76c
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35
2 changed files with 8 additions and 2 deletions

View file

@ -9,7 +9,7 @@ defmodule ZoeyscomputerWeb.GistLive.Index do
socket = socket |> assign(:current_user, socket.assigns.current_user)
if connected?(socket) && socket.assigns.current_user do
{:ok, stream(socket, :gists, Gists.list_gists())}
{:ok, stream(socket, :gists, Gists.list_gists_for_user(socket.assigns.current_user))}
else
{:ok, stream(socket, :gists, [])}
end