From 5b5b9d5d96d8930eb7d2166520b0f5630b5f45bd Mon Sep 17 00:00:00 2001 From: luccioman Date: Thu, 30 Mar 2017 16:14:22 +0200 Subject: [PATCH] URL Viewer : only display the link to metadata when metadata exists --- htroot/ViewFile.html | 2 +- htroot/ViewFile.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/ViewFile.html b/htroot/ViewFile.html index c31d3d3ac..3481c4690 100644 --- a/htroot/ViewFile.html +++ b/htroot/ViewFile.html @@ -103,7 +103,7 @@ function updatepage(str) {
URL Metadata
URL:
#[url]#
-
Hash:
#[hash]# (click this for full metadata)
+
Hash:
#(inurldb)##[hash]#::#[hash]# (click this for full metadata)#(/inurldb)#
In Metadata:
#(inurldb)#no::yes#(/inurldb)#
In Cache:
#(incache)#no::yes#(/incache)#
First Seen:
#[firstSeen]#
diff --git a/htroot/ViewFile.java b/htroot/ViewFile.java index 9c61ba70d..778688825 100644 --- a/htroot/ViewFile.java +++ b/htroot/ViewFile.java @@ -356,6 +356,7 @@ public class ViewFile { prop.put("error", "0"); prop.put("error_url", url.toNormalform(true)); prop.put("error_hash", urlHash); + prop.put("error_inurldb_hash", urlHash); prop.put("error_wordCount", wordCount); prop.put("error_firstSeen", ""); long firstseen = sb.index.getFirstSeenTime(ASCII.getBytes(urlHash));