Added following page to see posts from yourself and people you follow

This commit is contained in:
2026-04-05 14:41:29 -04:00
parent 8077e570f4
commit 4b36131183
6 changed files with 212 additions and 3 deletions

View File

@@ -30,6 +30,13 @@ defmodule Mixer.Posts.Tweet do
actions do
defaults [:read, :destroy]
read :following_feed do
filter expr(
user_id == ^actor(:id) or
exists(user.followers, follower_id == ^actor(:id))
)
end
create :create do
upsert? true
accept [:content]