Donmai

Danbooru 2 Issues Topic

Posted under General

This topic has been locked.

Toks said:

The -pool: metatag not working is a bug I fixed for the next update. Until then you'll need to do it manually: Go to the pool's edit page and Ctrl+F for the ID of the post, then remove the ID from the list and save the pool.

Thanks for the quick reply!

Log said:

Was there an update to the CSS? I was using the stylish script from forever ago to make the text wrap to screen width but that quit happening today.

I don't any of the recent CSS updates affected text wrapping.

What custom CSS are you using, specifically?

It was a stylish script from long before custom css was implemented (I would attempt to port it to the actual site custom css but I am very very out of touch with html/css)

Let's just strip this as it was what was causing the problems.

Updated

Hmm, I don't see anything related to word wrap in that css.

And Danbooru is already supposed to wrap text in forum posts and comments to screen width, without custom css. Is it possible you installed some new stylesheet/userscript recently that broke it?

Oh weird, disabling the Stylish CSS actually made it wrap to screen, maybe I had it disabled previously and reenabled it last night wnen I was messing around with stylish. I am worse at computers than I thought.

there seems to be bugs involving usages with ~user:(insert username here)

I don't know the exact specific, but for instance, this one refuses to show result but this does so it's not clearly user issue.

in normal condition, it's supposed to show them, one tag or two. After all, other tags, such as ~pool: show up fine. (example 1, using two ~pool: tags, example 2, using two ~general tags )

Even using two user tags doesn't help

Updated

Under the current parsing code, or-searches (those with a ~ in them) normally don't work with metatags (like user:, for instance).

The only exceptions to this are pool:<pool_id_here> and fav:<user_id_here>, which are special. All other metatags will be parsed as normal tags; that is, "~user:cyberwire" will look for the tag literally named "user:cyberwire", which of course does not exist.

Toks said:

Under the current parsing code, or-searches (those with a ~ in them) normally don't work with metatags (like user:, for instance).

The only exceptions to this are pool:<pool_id_here> and fav:<user_id_here>, which are special. All other metatags will be parsed as normal tags; that is, "~user:cyberwire" will look for the tag literally named "user:cyberwire", which of course does not exist.

I hate to sound like I'm pulling your leg here, but it was working somehow. Well, forget about that, though. Fact that it doesn't work right now is what's important.

Is there any way we can have it work?

FoolyDooly said:

I hate to sound like I'm pulling your leg here, but it was working somehow. Well, forget about that, though. Fact that it doesn't work right now is what's important.

Do you mean way back in Danbooru 1? I suppose it's possible, though it seems strange that it wouldn't work now in Danbooru 2.

FoolyDooly said:

Is there any way we can have it work?

I don't think it can be done easily. The current tag parsing code ORs normal tags together when doing an or-search, without regard for other parts of the query like metatags. Making it work would probably require rewriting it to allow ORing together any part of the query. But I'm not inclined to rewrite core parts of the site's code without good reason. I'd probably break something or make it perform poorly.

The only exceptions would be pool:<name> and fav:<name>. Since pool:<id> and fav:<id> already work for or-searches, making them work for names too shouldn't be that difficult.

Toks said:

I don't think it can be done easily. The current tag parsing code ORs normal tags together when doing an or-search, without regard for other parts of the query like metatags. Making it work would probably require rewriting it to allow ORing together any part of the query. But I'm not inclined to rewrite core parts of the site's code without good reason. I'd probably break something or make it perform poorly.

The only exceptions would be pool:<name> and fav:<name>. Since pool:<id> and fav:<id> already work for or-searches, making them work for names too shouldn't be that difficult.

Yeah, that code doesn't seem to be set up yet. Doing searches via user:<id> just takes me to front page of the posts

Any way I can help with fixing this?

FoolyDooly said:

Yeah, that code doesn't seem to be set up yet. Doing searches via user:<id> just takes me to front page of the posts

user:<id> isn't supposed to work at all, actually, and I don't know why you'd want it to when using user:<name> is easier than remembering ids.

fav:<id> isn't supposed to work either. The reason it works with or-searches but not with normal searches is because of the implementation. The same index that holds normal tags for a post also holds favorited user ids and pool ids, for performance reasons. It doesn't hold the uploader id. Thus or-searches working for fav:<id> and pool:<id> is just an accident.

1 39 40 41 42 43 44 45 46 47 315