1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2026-02-15 17:16:57 +00:00
This commit is contained in:
Phantasm 2025-12-23 16:51:59 +01:00
parent b9601ae11a
commit ba8235ef50
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -102,7 +102,8 @@ defmodule Pleroma.Factory do
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
"https://example.com/objects/#{Ecto.UUID.generate()}"
else
@ -371,7 +372,8 @@ defmodule Pleroma.Factory do
object_local = if attrs[:object_local] == false, do: false, else: true
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
# to create mismatched Create Activities with an ID coming from
# a different domain than the Object