gist support with gothub

This commit is contained in:
Revvy 2023-04-22 17:07:25 -04:00
parent eaa76b3cfa
commit 50467f2a9c
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@
$url = $frontend . "/" . $wiki_name . explode($original, $url)[1];
}
}
else if (strpos($url, "gist.github.com") !== false)
{
$gist_path = explode("gist.github.com", $url)[1];
$url = $frontend . "/gist" . $gist_path;
}
else
{
$url = $frontend . explode($original, $url)[1];