Skip to content

Commit 76f0c6d

Browse files
committed
Merge branch 'master' into i18n
2 parents 42658b7 + 00a1a5f commit 76f0c6d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/tools/Prefinery.class.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ public static function findOrCreateUser($email, $inviteCode = null, $referrerId
6060
$user = static::findUser($email);
6161
if (!$user)
6262
{
63+
// dont record ip for lbry.io addresses, for testing
64+
$ip = isset($_SERVER['REMOTE_ADDR']) && !preg_match('/@lbry\.io$/', $email) ? $_SERVER['REMOTE_ADDR'] : null;
65+
$ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null;
6366
$user = Prefinery::createTester(array_filter([
6467
'email' => $email,
6568
'status' => $inviteCode ? static::STATE_ACTIVE : static::STATE_APPLIED, # yes, has to be ACTIVE to validate invite code
6669
'invitation_code' => $inviteCode,
6770
'referrer_id' => $referrerId,
68-
'profile' => ['ip' => $_SERVER['REMOTE_ADDR'], 'user_agent' => $_SERVER['HTTP_USER_AGENT']]
71+
'profile' => ['ip' => $ip, 'user_agent' => $ua]
6972
]));
7073
}
7174

@@ -128,4 +131,4 @@ protected static function decodePrefineryResponse($rawBody, $allowEmptyResponse
128131

129132
class PrefineryException extends Exception
130133
{
131-
}
134+
}

view/template/page/publish.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<p>
6565
LBRY uses the ground-breaking innovation of the blockchain to leave no one in control of your content except for you (including us!).</p>
6666
<p>
67-
LBRY is an open-source protocol that is controlled by it's users: we could not change the rules even if wanted to.
67+
LBRY is an open-source protocol that is controlled by it's users: we could not change the rules even if we wanted to.
6868
</p>
6969
<h4>Complete Creator Control</h4>
7070
<p>Update your content at any time. Change the price. Change the title. Publish, unpublish. You and only you can do this in LBRY.</p>
@@ -83,7 +83,7 @@
8383
<li>
8484
Receive $1,000 worth of LBRY credits to hold, use or sell.
8585
<div class="meta">
86-
We make no guarantee of the value of a credit, but credits are actively traded. Current credit price can be seen
86+
We make no guarantee of the current or future monetary value of a credit, but credits are actively traded. Current credit market prices can be seen
8787
<a class="link-primary" href="https://bittrex.com/Market/Index?MarketName=BTC-LBC">here</a> or <a class="link-primary" href="https://poloniex.com/exchange#btc_lbc">here</a>.
8888
</div>
8989
</li>

0 commit comments

Comments
 (0)