channel-level blocking

This commit is contained in:
Akinwale Ariwodola 2019-12-13 10:46:57 +01:00
parent 8c6c576a31
commit 152fbd043c

View file

@ -234,6 +234,14 @@ class MainController extends AppController {
if ($claim->transaction_hash_id == $parts[0] && $claim->vout == $parts[1]) {
$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);