Glimesh / glimesh.tv

Glimesh is a next generation live streaming platform built by the community, for the community.
https://glimesh.tv
Other
471 stars 79 forks source link

Bug fix for channel hosting, the hosting banner/redirect does not take into account if the host target is still live #820

Closed MemoryLeakDeath closed 2 years ago

MemoryLeakDeath commented 2 years ago

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.