1
0
Fork 0

(Hopefully) SQL improvements

This commit is contained in:
Michael 2022-09-24 17:56:07 +00:00
commit 3911c9450b
11 changed files with 34 additions and 35 deletions

View file

@ -145,7 +145,7 @@ function pubsub_post(App $a)
}
// We only import feeds from OStatus here
if ($contact['network'] != Protocol::OSTATUS) {
if (!in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS])) {
Logger::warning('Unexpected network', ['contact' => $contact]);
hub_post_return();
}