mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Uncommented code for production
This commit is contained in:
parent
48eab05b62
commit
0fdc535a53
1 changed files with 13 additions and 13 deletions
26
lib/thirdparty/LBRY.class.php
vendored
26
lib/thirdparty/LBRY.class.php
vendored
|
@ -50,25 +50,26 @@ class LBRY
|
|||
return Curl::post(static::getApiUrl('/user/unsubscribe'), ['email' => $email], ['json_response' => true]);
|
||||
}
|
||||
|
||||
public static function connectYoutube($channel_name, $immediateSync = false) {
|
||||
public static function connectYoutube($channel_name, $immediateSync = false)
|
||||
{
|
||||
// Uncomment next line for production and comment other return
|
||||
// return Curl::post(static::getApiUrl('/yt/new'), [
|
||||
// 'desired_lbry_channel_name' => $channel_name,
|
||||
// 'immediate_sync' => $immediateSync,
|
||||
// 'type' => 'sync'
|
||||
// ], [
|
||||
// 'json_response' => true
|
||||
// ]);
|
||||
|
||||
// Uncomment next line for development and comment other return (this also requires the testnet API)
|
||||
return Curl::post(static::getApiUrl('/yt/new'), [
|
||||
'desired_lbry_channel_name' => $channel_name,
|
||||
'immediate_sync' => $immediateSync,
|
||||
'return_url' => 'http://localhost:8000/youtube/status/',
|
||||
'type' => 'sync'
|
||||
], [
|
||||
'json_response' => true
|
||||
]);
|
||||
|
||||
// Uncomment next line for development and comment other return (this also requires the testnet API)
|
||||
// return Curl::post(static::getApiUrl('/yt/new'), [
|
||||
// 'desired_lbry_channel_name' => $channel_name,
|
||||
// 'immediate_sync' => $immediateSync,
|
||||
// 'return_url' => 'http://localhost:8000/youtube/status/',
|
||||
// 'type' => 'sync'
|
||||
// ], [
|
||||
// 'json_response' => true
|
||||
// ]);
|
||||
}
|
||||
|
||||
// Check the sync status
|
||||
|
@ -93,8 +94,7 @@ class LBRY
|
|||
|
||||
public static function logWebVisitor($site, $visitorID, $IPAddress)
|
||||
{
|
||||
if (IS_PRODUCTION)
|
||||
{
|
||||
if (IS_PRODUCTION) {
|
||||
return Curl::post(static::getApiUrl("/visitor/new"), ['site' => $site, 'visitor_id' => $visitorID, 'ip_address' => $IPAddress], ['json_response' => true]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue