Danbooru

Danbooru 2 Issues Topic

Posted under General

This topic has been locked.

I found something weird. Every pool's description that I've been visited turned into "Buy ZenMate Premium for only €6.49 with turbo speed for HD quality streaming!". I'm checking through "Edit" menu, but the words written there is normal as usual. I do install ZenMate into my browser, but how can they altered Danbooru's pool description? Is this some kind of bug?

Sacriven said:

I found something weird. Every pool's description that I've been visited turned into "Buy ZenMate Premium for only €6.49 with turbo speed for HD quality streaming!". I'm checking through "Edit" menu, but the words written there is normal as usual. I do install ZenMate into my browser, but how can they altered Danbooru's pool description? Is this some kind of bug?

Sounds like zenmate bug. Perhaps they look up element on the page by id="description" or something.

evazion said:

That makes sense.

On another topic: has anyone else noticed their saved searches not updating or is it just me? I have a bunch that seem to not be finding up new posts.

They update only went I run them - never on the My Account page, which is still only showing one or two searches.

evazion said:

On another topic: has anyone else noticed their saved searches not updating or is it just me? I have a bunch that seem to not be finding up new posts.

Same for me. I've been assuming they just weren't fully implemented yet, since albert said "over the next few months..." in topic #13065

can't access sitemap today. maybe from latest commit about supervoters?

Show

/var/www/danbooru2/releases/20160920000749/app/views/static/site_map.html.erb:113: unknown regexp option - l /var/www/danbooru2/releases/20160920000749/app/views/static/site_map.html.erb:114: syntax error, unexpected '<' <ul> ^ /var/www/danbooru2/releases/20160920000749/app/views/static/site_map.html.erb:115: unknown regexp option - l /var/www/danbooru2/releases/20160920000749/app/views/static/site_map.html.erb:116: syntax error, unexpected '<' <li><%= link_to("Mod Actions",... ^ /var/www/danbooru2/releases/20160920000749/app/views/static/site_map.html.erb:143: syntax error, unexpected keyword_ensure, expecting ')' /var/www/danbooru2/releases/20160920000749/app/views/static/site_map.html.erb:145: syntax error, unexpected keyword_end, expecting ')'

I've often thought this since I started looking into versions on this site, but shouldn't the description field for pools be versioned?

As it is, pool descriptions are fairly easy to vandalize with little recourse but to see if albert or somebody else has a backup, and that's if you even recognize the vandalism at all which you may not if you don't frequent the pool a lot. It would also be difficult to attribute the vandalism to a particular user, especially if they are popular pools that get modified a lot.

Trying to edit an artist throws up error:

NoMethodError exception raised

undefined method `editable_by?' for #<Artist:0x007f5ccffaa8d8>
app/views/artists/edit.html.erb:8:in `_app_views_artists_edit_html_erb___272767238693458082_70018301834440'
app/controllers/artists_controller.rb:14:in `edit'

This is related to the recent commit c8c99e9.

When attempting to edit a deleted artist, such as artist #140492, then the following bit of code kicks off, which seems to work just fine:

<% if !@artist.is_active? %>
    <p>This artist entry is inactive and cannot be edited.</p>

However, when attempting to edit an active artist, such as artist #140676, then the following bit of code kicks off, which is where the above error occurs:

<% elsif @artist.editable_by?(CurrentUser.user) %>
       <%= render "form" %>

Since the problem lies with the second conditional statement, it might be easier to change the second and third conditional statements to the following instead:

<% if !@artist.is_active? %>
    <p>This artist entry is inactive and cannot be edited.</p>
<% elsif @artist.is_banned? %>
    <p>The artist requested removal of this page.</p>
<% else %>
    <%= render "form" %>
<% end %>

I can't edit artists anymore. I get this instead.

NoMethodError exception raised

    undefined method `editable_by?' for #<Artist:0x007f5cca6009e0>
    app/views/artists/edit.html.erb:8:in `_app_views_artists_edit_html_erb___272767238693458082_70018276985360'
    app/controllers/artists_controller.rb:14:in `edit'

edit: Just read above. I think BrokenEagle98 is right since it appears the function in the conditional statement doesn't exist.

Updated

For the artist editing issue noted above, commit 026a64c went live a few hours ago. I also just verified that editing artists works again.

Sacriven said:

Experiencing some errors when uploading images from Twitter through bookmarklet. Is it a bug?

I just checked, and it still works for me. Full disclosure though, it only works on Twitter when I use it with Google Chrome...