Topic: [Bug?] Inconsistent thumbnail behavior in Notes (Related to Comments)

Posted under Site Bug Reports & Feature Requests

I just added a few notes to post #3962334

Each of them is "thumb #xxxxxxx"

Most of them render their mouseover as "post #xxxxxxx", but one of them actually renders the thumbnail of the post it refers to.

Why the inconsistent behavior? Is this somehow something related client-side?

edit: It seems that "thumb:" entries rendered in the Comments section also cause the Note to render the image.

Updated

I think you will find this page useful: https://e621.net/help/dtext It explains all of these shorthand codes and it also gives many examples.

Because thumb #xxxxxxx is for showing the thumbnail, which is why it shows the picture.
And post #xxxxxxx is for linking to the post instead. Which is why it does not show a picture, but it does create the link to the page which has that picture.

So you would need to use whichever format you wanted. Switching between them would give you mixed results, as you can see.

EDIT: Oh I see. That is a weird one. It's not just refusing to thumbnail them, it is also falsely displaying some of them as 'post #xxxxx' even when the actual code used was thumb #xxxxx. Interesting.

Updated

furrypickle said:
I think you will find this page useful: https://e621.net/help/dtext It explains all of these shorthand codes and it also gives many examples.

Because thumb #xxxxxxx is for showing the thumbnail, which is why it shows the picture.
And post #xxxxxxx is for linking to the post instead. Which is why it does not show a picture, but it does create the link to the page which has that picture.

So you would need to use whichever format you wanted. Switching between them would give you mixed results, as you can see.

This has nothing to do with it.

furrypickle said:
EDIT: Oh I see. That is a weird one. It's not just refusing to thumbnail them, it is also falsely displaying some of them as 'post #xxxxx' even when the actual code used was thumb #xxxxx. Interesting.

I think esix will do the same if you put "thumb #xxxxxxx" in the Description section of a post - it will refuse to thumbnail and display "post #xxxxxxx" instead. Maybe it's the same behavior seen here in Notes.

Earlopain

Former Staff

Now this is an interesting bug. The post ids gets extracted during dtext parsing and remembered for later so that the post information can be pulled up all in one go for the whole page. It would be silly to make a single query each for every user avatar for example.

For some reason the post notes are the only place where html is getting cached through rails. That stops the ids in the dtext from being parsed which means that the necessary information isn't pulled out anymore, _unless_ the post is also embeded somewhere else in the page, like in the comments for example.

Watsit

Privileged

tredfg543 said:
I think esix will do the same if you put "thumb #xxxxxxx" in the Description section of a post - it will refuse to thumbnail and display "post #xxxxxxx" instead. Maybe it's the same behavior seen here in Notes.

Changing thumb #xxxxxxx to post #xxxxxxx in the comments is done on purpose, to avoid thumbnails taking up so much space in the Description and bloating it. Maybe it was intended for the same thing to be done with notes? I'm curious if thumb #xxxxxxx links the Description would similarly show the thumbnail if the thumbnail appears in the comments, and only change to post #xxxxxxx if not, or if that's done differently.

watsit said:
I'm curious if thumb #xxxxxxx links the Description would similarly show the thumbnail if the thumbnail appears in the comments, and only change to post #xxxxxxx if not, or if that's done differently.

"thumb" behavior in the Description is consistent regardless of what's in the comments. Image

  • 1