Merge branch 'develop' into issue/1177
This commit is contained in:
commit
f95b67c933
@ -22,7 +22,10 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||||||
alias Pleroma.Web.Router
|
alias Pleroma.Web.Router
|
||||||
alias Pleroma.Web.XML
|
alias Pleroma.Web.XML
|
||||||
|
|
||||||
plug(Pleroma.Plugs.RateLimiter, :ap_routes when action in [:object, :activity])
|
plug(
|
||||||
|
Pleroma.Plugs.RateLimiter,
|
||||||
|
{:ap_routes, params: ["uuid"]} when action in [:object, :activity]
|
||||||
|
)
|
||||||
|
|
||||||
plug(Pleroma.Web.FederatingPlug when action in [:salmon_incoming])
|
plug(Pleroma.Web.FederatingPlug when action in [:salmon_incoming])
|
||||||
|
|
||||||
|
@ -541,6 +541,9 @@ defmodule Pleroma.UserTest do
|
|||||||
avatar: %{some: "avatar"}
|
avatar: %{some: "avatar"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clear_config([:instance, :user_bio_length])
|
||||||
|
clear_config([:instance, :user_name_length])
|
||||||
|
|
||||||
test "it confirms validity" do
|
test "it confirms validity" do
|
||||||
cs = User.remote_user_creation(@valid_remote)
|
cs = User.remote_user_creation(@valid_remote)
|
||||||
assert cs.valid?
|
assert cs.valid?
|
||||||
|
@ -555,7 +555,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|
|||||||
note_two = insert(:note, data: %{"context" => "suya.."})
|
note_two = insert(:note, data: %{"context" => "suya.."})
|
||||||
activity_two = insert(:note_activity, note: note_two)
|
activity_two = insert(:note_activity, note: note_two)
|
||||||
|
|
||||||
{:ok, activity_two} = CommonAPI.add_mute(user, activity_two)
|
{:ok, _activity_two} = CommonAPI.add_mute(user, activity_two)
|
||||||
|
|
||||||
assert [_activity_two, _activity_one] =
|
assert [_activity_two, _activity_one] =
|
||||||
ActivityPub.fetch_activities([], %{"muting_user" => user, "with_muted" => true})
|
ActivityPub.fetch_activities([], %{"muting_user" => user, "with_muted" => true})
|
||||||
|
@ -24,6 +24,8 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
|||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
|
||||||
|
clear_config([:instance, :max_remote_account_fields])
|
||||||
|
|
||||||
describe "handle_incoming" do
|
describe "handle_incoming" do
|
||||||
test "it ignores an incoming notice if we already have it" do
|
test "it ignores an incoming notice if we already have it" do
|
||||||
activity = insert(:note_activity)
|
activity = insert(:note_activity)
|
||||||
|
@ -9,6 +9,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
|
|||||||
use Pleroma.Web.ConnCase
|
use Pleroma.Web.ConnCase
|
||||||
|
|
||||||
import Pleroma.Factory
|
import Pleroma.Factory
|
||||||
|
clear_config([:instance, :max_account_fields])
|
||||||
|
|
||||||
describe "updating credentials" do
|
describe "updating credentials" do
|
||||||
test "sets user settings in a generic way", %{conn: conn} do
|
test "sets user settings in a generic way", %{conn: conn} do
|
||||||
|
Loading…
Reference in New Issue
Block a user