Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel
2021-10-25 21:27:21 +02:00
committed by GitHub
parent 87673fd0c5
commit 81c9d8d479
6 changed files with 11 additions and 11 deletions

View File

@@ -535,12 +535,12 @@ class OStatus
foreach (self::$itemlist as $item) {
$found = Post::exists(['uid' => $importer["uid"], 'uri' => $item["uri"]]);
if ($found) {
Logger::info("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already exists.");
Logger::notice("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already exists.");
} elseif ($item['contact-id'] < 0) {
Logger::info("Item with uri ".$item["uri"]." is from a blocked contact.");
Logger::notice("Item with uri ".$item["uri"]." is from a blocked contact.");
} else {
$ret = Item::insert($item);
Logger::notice("Item with uri ".$item["uri"]." for user ".$importer["uid"].' stored. Return value: '.$ret);
Logger::info("Item with uri ".$item["uri"]." for user ".$importer["uid"].' stored. Return value: '.$ret);
}
}
}