show only your gists
This commit is contained in:
parent
b2f2f57029
commit
221c3ae76c
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue