more occurrences of SharedFile::getInfoHash #35

pull/42/head
Zlatin Balevsky 2020-02-14 15:20:01 +00:00
parent 9337d1b74d
commit 2cc1e384bc
1 changed files with 3 additions and 2 deletions

View File

@ -89,12 +89,13 @@ public class FilesServlet extends HttpServlet {
String comment = null; String comment = null;
if (sf.getComment() != null) if (sf.getComment() != null)
comment = DataUtil.readi18nString(Base64.decode(sf.getComment())); comment = DataUtil.readi18nString(Base64.decode(sf.getComment()));
InfoHash ih = new InfoHash(sf.getRoot());
FilesTableEntry entry = new FilesTableEntry(sf.getFile().getName(), FilesTableEntry entry = new FilesTableEntry(sf.getFile().getName(),
sf.getInfoHash(), ih,
sf.getCachedPath(), sf.getCachedPath(),
sf.getCachedLength(), sf.getCachedLength(),
comment, comment,
core.getCertificateManager().hasLocalCertificate(sf.getInfoHash())); core.getCertificateManager().hasLocalCertificate(ih));
entries.add(entry); entries.add(entry);
}); });