Under normal circumstances, the auto host job will un-host target channels that are no longer live. There have been instances, however, where the flag does not get un-set properly and the hosting channel will continue to redirect to a no-longer live channel and display the hosting banner. To help prevent this in the future, I've changed the get_hosting_target method's query to take into account both the hosting flag and the target channel's status flag.
Under normal circumstances, the auto host job will un-host target channels that are no longer live. There have been instances, however, where the flag does not get un-set properly and the hosting channel will continue to redirect to a no-longer live channel and display the hosting banner. To help prevent this in the future, I've changed the get_hosting_target method's query to take into account both the hosting flag and the target channel's status flag.