Git Product home page Git Product logo

Comments (3)

mcrmonkey avatar mcrmonkey commented on June 3, 2024

i've been able to delete my own posts on my own items
on the "aaaaaaaaaaaaaaaaa...aaa" post i was able to add and then delete my own comment (within 1 minute)

from pjuu.

docapotamus avatar docapotamus commented on June 3, 2024

Sorry for not being clear.

This affects deleting a comment you made on a post made my someone else. The issue is down to using the 'comment.user_username' in the generation of the URL and not the property field I added to the Post representation (not stored in Redis) a few weeks back 'comment.post_author' which is needed to generate the correct URL

These URLs can get a little confusing as a comments URLs are in the form:

/<post_authors_username>/<post_id>/<comment_id>/['upvote', 'downvote', 'delete']

This makes sense for the actions as comments are children of posts. If you look at the URL for creating a comment:

/<post_author>/<post_id>/comment

It makes a little more sense.

This is fixed in the 0.2dev branch (I changed the name from 'new_design'). I will leave this open until testing after platform rebuild on Friday. I will close once I know its gone for good.

from pjuu.

docapotamus avatar docapotamus commented on June 3, 2024

This bug is now fixed as of 0.2dev. Missed closing through commit message. Closing manually.

from pjuu.

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.