1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ThreadMuteTest do
7 import Pleroma.Web.ThreadMute
12 user = insert(:user, %{id: "1"})
15 insert(:note_activity, %{
16 data: %{"context" => "http://localhost:4000/contexts/361ca23e-ffa7-4773-b981-a355a18dc592"}
20 {:ok, mute} = add_mute(user, id)
22 assert mute.user_id == "1"
23 assert mute.context == "http://localhost:4000/contexts/361ca23e-ffa7-4773-b981-a355a18dc592"