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
|
|
@ -107,7 +107,7 @@ function pubsub_post(App $a)
|
|||
{
|
||||
$xml = Network::postdata();
|
||||
|
||||
Logger::notice('Feed arrived from ' . $_SERVER['REMOTE_ADDR'] . ' for ' . DI::args()->getCommand() . ' with user-agent: ' . $_SERVER['HTTP_USER_AGENT']);
|
||||
Logger::info('Feed arrived from ' . $_SERVER['REMOTE_ADDR'] . ' for ' . DI::args()->getCommand() . ' with user-agent: ' . $_SERVER['HTTP_USER_AGENT']);
|
||||
Logger::debug('Data: ' . $xml);
|
||||
|
||||
$nick = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(trim(DI::args()->getArgv()[1])) : '');
|
||||
|
|
@ -149,7 +149,7 @@ function pubsub_post(App $a)
|
|||
hub_post_return();
|
||||
}
|
||||
|
||||
Logger::notice('Import item for ' . $nick . ' from ' . $contact['nick'] . ' (' . $contact['id'] . ')');
|
||||
Logger::info('Import item for ' . $nick . ' from ' . $contact['nick'] . ' (' . $contact['id'] . ')');
|
||||
$feedhub = '';
|
||||
OStatus::import($xml, $importer, $contact, $feedhub);
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ function pubsubhubbub_init(App $a) {
|
|||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
Logger::notice("$hub_mode request from " . $_SERVER['REMOTE_ADDR']);
|
||||
Logger::info("$hub_mode request from " . $_SERVER['REMOTE_ADDR']);
|
||||
|
||||
if (DI::args()->getArgc() > 1) {
|
||||
// Normally the url should now contain the nick name as last part of the url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue