commento.js: show error when comment link is 404
Signed-off-by: Adhityaa Chandrasekar <adtac@adtac.in>
This commit is contained in:
parent
aaa44a0bee
commit
18612933f6
@ -8,7 +8,7 @@ import (
|
|||||||
func TestCommentDeleteBasics(t *testing.T) {
|
func TestCommentDeleteBasics(t *testing.T) {
|
||||||
failTestOnError(t, setupTestEnv())
|
failTestOnError(t, setupTestEnv())
|
||||||
|
|
||||||
commenterHex = "temp-commenter-hex"
|
commenterHex := "temp-commenter-hex"
|
||||||
commentHex, _ := commentNew(commenterHex, "example.com", "/path.html", "root", "**foo**", "approved", time.Now().UTC())
|
commentHex, _ := commentNew(commenterHex, "example.com", "/path.html", "root", "**foo**", "approved", time.Now().UTC())
|
||||||
commentNew(commenterHex, "example.com", "/path.html", commentHex, "**bar**", "approved", time.Now().UTC())
|
commentNew(commenterHex, "example.com", "/path.html", commentHex, "**bar**", "approved", time.Now().UTC())
|
||||||
|
|
||||||
|
@ -2107,6 +2107,7 @@
|
|||||||
if (window.location.hash.startsWith("#commento-")) {
|
if (window.location.hash.startsWith("#commento-")) {
|
||||||
var el = $(ID_CARD + window.location.hash.split("-")[1]);
|
var el = $(ID_CARD + window.location.hash.split("-")[1]);
|
||||||
if (el === null) {
|
if (el === null) {
|
||||||
|
errorShow("The comment you're looking for no longer exists. Perhaps it was deleted by the commenter or a moderator?");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user