paginating comments and letting tweet authors delete comments on their post

This commit is contained in:
2026-04-06 14:15:36 -04:00
parent faa96d88f5
commit 109ef398ee
2 changed files with 54 additions and 17 deletions

View File

@@ -140,6 +140,7 @@ defmodule Mixer.Posts.Tweet do
policy action(:destroy) do
authorize_if relates_to_actor_via(:user)
authorize_if relates_to_actor_via([:parent_tweet, :user])
end
policy action(:like) do