diff --git a/src/Core/GSFile.php b/src/Core/GSFile.php index 55dc5d9c61..5bf3b597d9 100644 --- a/src/Core/GSFile.php +++ b/src/Core/GSFile.php @@ -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(); diff --git a/templates/attachments/show.html.twig b/templates/attachments/show.html.twig new file mode 100644 index 0000000000..82d268cd32 --- /dev/null +++ b/templates/attachments/show.html.twig @@ -0,0 +1,25 @@ +{% extends 'left/left.html.twig' %} + +{% block stylesheets %} + {{ parent() }} + + + +{% endblock %} + +{# {% block header %} #} +{# {{ parent() }} #} +{# {% endblock %} #} + +{# {% block left %} #} +{# {{ parent() }} #} +{# {% endblock %} #} + +{% block body %} +