[CORE] Typo in GSFile and slight Twig weirdness in base template

This commit is contained in:
2021-04-28 20:16:59 +00:00
parent b1e514832b
commit be91fb754d
3 changed files with 31 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class GSFile
bool $is_local = true,
int $actor_id = null): Attachment
{
Event::handle('HashFile', [$file->getPathname(), &$hash]);
Event::handle('HashFile', [$sfile->getPathname(), &$hash]);
// The following properly gets the mimetype with `file` or other
// available methods, so should be safe
$mimetype = $sfile->getMimeType();