Danbooru

Blacklisted?

Posted under General

When I open post index (with and without tag filter), sometimes it doesn't show anything.

I looked closely and noticed that CSS class "blacklisted" is set for all images. I'm sure I have no blacklist entries.

Reloading seems to help though.

Updated by rotzapajer

"View Source" in all browsers I know of gives you the source as the web server sends it; if it's modified through client-side scripting such as Javascript (which is what I meant by "at runtime"), those modifications won't appear. At any rate, I don't have a blacklist, they're all class "blacklisted" for me, and I've never had this problem, so I'm certain that's not the cause.

I haven't the foggiest as to what the cause could be, though. Do the links still appear, just without thumbnails (i.e. as invisible boxes that you can only find by hovering over)? Do you have any similar problems on other websites?

This can potentially occur if a post is uploaded with no tags and the system fails to catch it and append tagme to it, it blanks out the whole page.

The way to correct it if the uploader doesn't catch it is to find which post has no tags in the source and add at least one.

This probably isn't the only circumstance that this situation occurs in but I know it does occur.

Log said:
This can potentially occur if a post is uploaded with no tags and the system fails to catch it and append tagme to it, it blanks out the whole page.

An empty tag list can break the script in Post.register().

Line #159 in post.js

post.tags = post.tags.match(/\S+/g)

should be changed to

post.tags = post.tags.split(/\s+/)

to prevent the crash caused by match() returning null and trying to use that null on the next line.

1