mirror of
https://github.com/friendica/friendica
synced 2025-04-26 00:30:12 +00:00
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
87673fd0c5
commit
81c9d8d479
6 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue