projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change to delete empty name field
[akkoma]
/
test
/
support
/
factory.ex
diff --git
a/test/support/factory.ex
b/test/support/factory.ex
index 9ef1b789c97b504a14b1a5e69f9c531d62daa8b1..1787c108821a56c057ed9836d9ae9bf95bd56ac3 100644
(file)
--- a/
test/support/factory.ex
+++ b/
test/support/factory.ex
@@
-183,8
+183,8
@@
defmodule Pleroma.Factory do
}
end
}
end
- def like_activity_factory do
- note_activity = insert(:note_activity)
+ def like_activity_factory
(attrs \\ %{})
do
+ note_activity =
attrs[:note_activity] ||
insert(:note_activity)
object = Object.normalize(note_activity)
user = insert(:user)
object = Object.normalize(note_activity)
user = insert(:user)