MM-68439 Centralize filename handling for FileInfo (#36223) (#36255)

Automatic Merge
Этот коммит содержится в:
Mattermost Build
2026-04-24 09:17:57 +02:00
коммит произвёл GitHub
родитель e5593b6489
Коммит 61d68d2d6e
5 изменённых файлов: 173 добавлений и 2 удалений

Просмотреть файл

@@ -1621,7 +1621,7 @@ func testFileInfoSlashShouldNotBeCharSeparator(t *testing.T, th *SearchTestHelpe
require.NoError(t, err)
defer th.deleteUserPosts(th.User.Id)
p1, err := th.createFileInfo(th.User.Id, post.Id, post.ChannelId, "alpha/beta gamma, theta", "alpha/beta gamma, theta", "jpg", "image/jpeg", 0, 0)
p1, err := th.createFileInfo(th.User.Id, post.Id, post.ChannelId, "testfile.jpg", "alpha/beta gamma, theta", "jpg", "image/jpeg", 0, 0)
require.NoError(t, err)
defer th.deleteUserFileInfos(th.User.Id)