lint
This commit is contained in:
parent
b9601ae11a
commit
ba8235ef50
1 changed files with 16 additions and 14 deletions
|
|
@ -102,7 +102,8 @@ defmodule Pleroma.Factory do
|
||||||
|
|
||||||
user = attrs[:user] || insert(:user)
|
user = attrs[:user] || insert(:user)
|
||||||
|
|
||||||
object_id = if attrs[:object_local] == false do
|
object_id =
|
||||||
|
if attrs[:object_local] == false do
|
||||||
# Must not match our Endpoint URL in the test env
|
# Must not match our Endpoint URL in the test env
|
||||||
"https://example.com/objects/#{Ecto.UUID.generate()}"
|
"https://example.com/objects/#{Ecto.UUID.generate()}"
|
||||||
else
|
else
|
||||||
|
|
@ -371,7 +372,8 @@ defmodule Pleroma.Factory do
|
||||||
object_local = if attrs[:object_local] == false, do: false, else: true
|
object_local = if attrs[:object_local] == false, do: false, else: true
|
||||||
note = attrs[:note] || insert(:note, user: user, object_local: object_local)
|
note = attrs[:note] || insert(:note, user: user, object_local: object_local)
|
||||||
|
|
||||||
activity_id = if attrs[:local] == false do
|
activity_id =
|
||||||
|
if attrs[:local] == false do
|
||||||
# Same domain as in note Object factory, it doesn't make sense
|
# Same domain as in note Object factory, it doesn't make sense
|
||||||
# to create mismatched Create Activities with an ID coming from
|
# to create mismatched Create Activities with an ID coming from
|
||||||
# a different domain than the Object
|
# a different domain than the Object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue