We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 109be2cf authored by elleo's avatar elleo

Default to the community station if the user just hits 'Listen' without specifying a tag

parent 3b26cff7
......@@ -24,6 +24,11 @@ require_once('templating.php');
if (isset($_GET['tag'])) {
$station = 'librefm://globaltags/' . $_GET['tag'];
if(empty($_GET['tag'])) {
// The user's just hit 'listen' without selecting a tag
// so we default to the community station
$station = "librefm://community/loved";
} else if (isset($_GET['station'])) {
$station = $_GET['station'];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment