mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-30 04:14:57 +00:00
make linter happy
This commit is contained in:
parent
cd8bdbc761
commit
db46913dcc
|
@ -362,8 +362,7 @@ defmodule Pleroma.Activity do
|
|||
end
|
||||
|
||||
def restrict_deactivated_users(query) do
|
||||
deactivated_users_query =
|
||||
from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
|
||||
deactivated_users_query = from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
|
||||
|
||||
from(activity in query, where: activity.actor not in subquery(deactivated_users_query))
|
||||
end
|
||||
|
|
|
@ -783,14 +783,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|
|||
{:ok, activity_one} = CommonAPI.post(deactivated, %{status: "hey!"})
|
||||
{:ok, activity_two} = CommonAPI.post(active, %{status: "yay!"})
|
||||
{:ok, _updated_user} = User.set_activation(deactivated, false)
|
||||
|
||||
|
||||
activities = ActivityPub.fetch_activities([], %{})
|
||||
|
||||
|
||||
refute Enum.member?(activities, activity_one)
|
||||
assert Enum.member?(activities, activity_two)
|
||||
end
|
||||
|
||||
|
||||
test "always see your own posts even when they address people you block" do
|
||||
user = insert(:user)
|
||||
blockee = insert(:user)
|
||||
|
|
Loading…
Reference in a new issue