Blocked claims #81

Merged
akinwale merged 8 commits from blocked-claims into master 2020-01-07 23:13:39 +01:00
Showing only changes of commit 152fbd043c - Show all commits

View file

@ -234,6 +234,14 @@ class MainController extends AppController {
if ($claim->transaction_hash_id == $parts[0] && $claim->vout == $parts[1]) { if ($claim->transaction_hash_id == $parts[0] && $claim->vout == $parts[1]) {
$claimIsBlocked = true; $claimIsBlocked = true;
} }
// check if the publisher (channel) is blocked
// block the channel if that's the case
if (isset($claim->publisher) &&
$claim->publisher->transaction_hash_id == $parts[0] &&
$claim->publisher->vout == $parts[1]) {
$claimIsBlocked = true;
}
} }
$this->set('claim', $claim); $this->set('claim', $claim);