summaryrefslogtreecommitdiff
path: root/internal/apimodule/fileserver
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-08 14:25:23 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-08 14:25:23 +0200
commitac9adb172b09882b12659a3e43a94d724eb65378 (patch)
tree0f97edf4377f406df321054d26e731ff5dcc6667 /internal/apimodule/fileserver
parentmake boosts work woo (#12) (diff)
downloadgotosocial-ac9adb172b09882b12659a3e43a94d724eb65378.tar.xz
Revert "make boosts work woo (#12)" (#15)
This reverts commit 9616f46424363adbc124da52c6728ca047506403.
Diffstat (limited to 'internal/apimodule/fileserver')
-rw-r--r--internal/apimodule/fileserver/fileserver.go2
-rw-r--r--internal/apimodule/fileserver/test/servefile_test.go (renamed from internal/apimodule/fileserver/servefile_test.go)4
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/apimodule/fileserver/fileserver.go b/internal/apimodule/fileserver/fileserver.go
index 55b8781b6..7651c8cc1 100644
--- a/internal/apimodule/fileserver/fileserver.go
+++ b/internal/apimodule/fileserver/fileserver.go
@@ -39,7 +39,7 @@ const (
// MediaSizeKey is the url key for the desired media size--original/small/static
MediaSizeKey = "media_size"
// FileNameKey is the actual filename being sought. Will usually be a UUID then something like .jpeg
- FileNameKey = "file_name"
+ FileNameKey = "file_name"
)
// FileServer implements the RESTAPIModule interface.
diff --git a/internal/apimodule/fileserver/servefile_test.go b/internal/apimodule/fileserver/test/servefile_test.go
index dbe979fb7..516e3528c 100644
--- a/internal/apimodule/fileserver/servefile_test.go
+++ b/internal/apimodule/fileserver/test/servefile_test.go
@@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-package fileserver_test
+package test
import (
"context"
@@ -90,7 +90,7 @@ func (suite *ServeFileTestSuite) TearDownSuite() {
func (suite *ServeFileTestSuite) SetupTest() {
testrig.StandardDBSetup(suite.db)
- testrig.StandardStorageSetup(suite.storage, "../../../testrig/media")
+ testrig.StandardStorageSetup(suite.storage, "../../../../testrig/media")
suite.testTokens = testrig.NewTestTokens()
suite.testClients = testrig.NewTestClients()
suite.testApplications = testrig.NewTestApplications()