87 lines
3.0 KiB

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86">
<title>GNU social &mdash; Some public communities</title>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
$query = urlencode('
nodes(platform: "gnusocial") {
$query_result = json_decode(file_get_contents("{$query}"), true);
$query_result = $query_result['data']['nodes'];
// Filter out instances with closed signups
$nodes = array_filter($query_result, function ($node) {
return $node['openSignups'];
// garbage collect
<header class="header">
<div class="home-menu menu menu-horizontal menu-fixed">
<a class="menu-heading" href="">
<img src="" alt="GNU social">
<ul class="menu-list">
<li class="menu-item"><a href="/" class=" menu-link">Home</a></li>
<li class="menu-item"><a href="/v2" class=" menu-link">Version 2</a></li>
<li class="menu-item"><a href="/v3" class=" menu-link">Version 3</a></li>
<div class="splash-container">
<div class="splash">
<h2 class="content-head is-center">Some public GNU social communities</h2>
<p>Please note that the servers listed here are not run by us and we are not responsible for their operation or
their content. They are listed here as a service to the community.</p>
<h3>Public GNU social Servers</h3>
<table id="nodes">
<?php foreach ($nodes as $node): ?>
<a href="https://<?php echo $node['host']; ?>"><?php echo $node['name']; ?></a>
<?php echo $node['countryCode']; ?>
<?php endforeach; ?>
<p><br>This table's data comes from <a href="">the federation - a statistics hub</a>, if
you want to be listed here, please go to;yournode.tld&#x3E;.
After some seconds, you should see your node added.</p>
<footer class="l-box is-center">
This site's source is <a href="">hosted here</a>.