Giter Site home page Giter Site logo

Comments (2)

timothyjrogers avatar timothyjrogers commented on August 26, 2024 1

This issue is caused by the template code in the verification modal here: https://github.com/bookwyrm-social/bookwyrm/blob/main/bookwyrm/templates/book/file_links/verification_modal.html#L20-L27

All three buttons ("Report Spam", "Cancel", and "Continue") are all wrapped in the authentication check which renders zero options when you are logged out. I assume this was added to prevent abuse of the spam reporting feature by unauthenticated users/bots, but leaving an essentially dead modal seems unintentional.

It's trivial to fix, I'll submit a PR reducing the authentication check to the "Report Spam" link. If a more knowledgeable maintainer can explain why the other two buttons would need an authentication check we can explore a more detailed fix.

from bookwyrm.

timothyjrogers avatar timothyjrogers commented on August 26, 2024

I'm able to reproduce this on books.infosec.exchange which (at time of writing) is on Bookwyrm version 0.7.3 as well as in my developer environment on current main code.

The behavior appears correct when logged in -- the modal provides me the option to continue to the link or back out -- however when not logged in I get the do-nothing modal you describe.

When logged in:

image

When logged out:

image

from bookwyrm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.