Skip to content

Commit

Permalink
Merge pull request #102 from Hyleus/messages-fix
Browse files Browse the repository at this point in the history
Fix tip message and typos
  • Loading branch information
HDVinnie authored Jan 4, 2018
2 parents 326210e + 492c0ec commit 8fd2755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AnnounceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function announce(Request $request, $passkey)
$ipv6 = $request->has('ipv6') ? bin2hex($request->get('ipv6')) : null;
$no_peer_id = ($request->has('no_peer_id') && $request->get('no_peer_id') == 1) ? true : false;

// If User Client Is Sending Negitive Values Return Error to Client
// If User Client Is Sending Negative Values Return Error to Client
if ($uploaded < 0 || $downloaded < 0 || $left < 0) {
return response(Bencode::bencode(['failure reason' => 'Data from client is negative']), 200, ['Content-Type' => 'text/plain']);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/BonusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ public function tipUploader($slug, $id)
if ($user->id == $torrent->user_id) {
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip Yourself!', 'Bro!', ['options']));
}
if ($tip_amount <= 0) {
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip A Negitive Amount!', 'Bro!', ['options']));
if ($tip_amount < 0) {
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip A Negative Amount!', 'Bro!', ['options']));
}
$uploader->seedbonus += $tip_amount;
$uploader->save();
Expand Down

0 comments on commit 8fd2755

Please sign in to comment.