Merge pull request #16578 from owncloud/fix_16556
show txt preview when file contains text
This commit is contained in:
commit
67cef93fdd
|
@ -38,7 +38,7 @@ class TXT extends Provider {
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public function isAvailable(\OCP\Files\FileInfo $file) {
|
public function isAvailable(\OCP\Files\FileInfo $file) {
|
||||||
return $file->getSize() > 5;
|
return $file->getSize() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue