[TESTS] Fix a couple of issues from last changes

This commit is contained in:
2022-03-14 18:33:47 +00:00
parent 888c3798b7
commit 20f690c532
94 changed files with 176 additions and 160 deletions

View File

@@ -188,7 +188,7 @@ class Note extends Model
$attention_targets = [];
foreach ($to as $target) {
if ($target === 'https://www.w3.org/ns/activitystreams#Public') {
if (\in_array($target, ActivityPub::PUBLIC_TO)) {
continue;
}
try {
@@ -217,7 +217,7 @@ class Note extends Model
}
foreach ($cc as $target) {
if ($target === 'https://www.w3.org/ns/activitystreams#Public') {
if (\in_array($target, ActivityPub::PUBLIC_TO)) {
continue;
}
try {