Skip to content

Commit 72c8f83

Browse files
authored
Update services/repository/files/content.go
1 parent d16e328 commit 72c8f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/files/content.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func GetContents(ctx context.Context, repo *repo_model.Repository, treePath, ref
203203
} else if entry.IsLink() {
204204
contentsResponse.Type = string(ContentTypeLink)
205205
// The target of a symlink file is the content of the file
206-
targetFromContent, err := entry.Blob().GetBlobContent(setting.UI.MaxDisplayFileSize)
206+
targetFromContent, err := entry.Blob().GetBlobContent(1024)
207207
if err != nil {
208208
return nil, err
209209
}

0 commit comments

Comments
 (0)