app/policies/federails/client/following_policy.rb in federails-0.3.0 vs app/policies/federails/client/following_policy.rb in federails-0.4.0

- old
+ new

@@ -8,28 +8,28 @@ def destroy? in_following? end def accept? - in_following? && @record.target_actor_id == @user.actor.id + in_following? && @record.target_actor_id == @user.federails_actor.id end def follow? create? end class Scope < Scope def resolve - scope.with_actor(@user.actor) + scope.with_actor(@user.federails_actor) end end private def in_following? return false unless user_with_actor? - @record.actor_id == @user.actor&.id || @record.target_actor_id == @user.actor&.id + @record.actor_id == @user.federails_actor&.id || @record.target_actor_id == @user.federails_actor&.id end end end end