forked from LBRYCommunity/lbry-sdk
add config option for filtering channels
This commit is contained in:
parent
c7e964ec42
commit
77daf6812a
2 changed files with 6 additions and 3 deletions
|
@ -2884,9 +2884,6 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
|
||||
if not preview:
|
||||
await self.broadcast_or_release(tx, blocking)
|
||||
#await self.storage.save_claims([self._old_get_temp_claim_info(
|
||||
# tx, new_txo, claim_address, claim, name, dewies_to_lbc(amount)
|
||||
#)])
|
||||
# await self.analytics_manager.send_claim_action('publish') todo: what to send?
|
||||
else:
|
||||
await account.ledger.release_tx(tx)
|
||||
|
|
|
@ -106,6 +106,12 @@ class LBRYElectrumX(ElectrumX):
|
|||
self.daemon = self.session_mgr.daemon
|
||||
self.bp: LBRYBlockProcessor = self.session_mgr.bp
|
||||
self.db: LBRYDB = self.bp.db
|
||||
# space separated list of channel URIs used for filtering bad content
|
||||
filtering_channels = self.env.default('FILTERING_CHANNELS', '')
|
||||
if ' ' in filtering_channels:
|
||||
self.filtering_channels_uris = filtering_channels.split(' ')
|
||||
else:
|
||||
self.filtering_channels_uris = []
|
||||
|
||||
def set_request_handlers(self, ptuple):
|
||||
super().set_request_handlers(ptuple)
|
||||
|
|
Loading…
Reference in a new issue