Giter Site home page Giter Site logo

Comments (8)

Codes4Fun avatar Codes4Fun commented on July 26, 2024 6

The upvote should be by default, that is how reddit does it, and I would suspect most users would just upvote their own post anyway, it also makes it easier to find your own posts since you will see the green vote counter.

from zerotalk.

HelloZeroNet avatar HelloZeroNet commented on July 26, 2024 5

While it could be filtered on client-side, but for example facebook or disqus also allows to like your own comment/post.

Maybe setting the upvote to 0 by default would be more better solution

from zerotalk.

TheNain38 avatar TheNain38 commented on July 26, 2024

I'm not using facebook because of privacy issues, but I didn't know that they allow upvoting yourself. So yes setting upvote to 0 by default would be better

from zerotalk.

christopherturner avatar christopherturner commented on July 26, 2024

@TheNain38 Yeah, it would make the most sense to set default upvote to 0 and continue allowing users to upvote their own content. Also, just bumping this issue. πŸ‘

from zerotalk.

angristan avatar angristan commented on July 26, 2024

Agreed πŸ‘

from zerotalk.

fiskr avatar fiskr commented on July 26, 2024

@Codes4Fun it sounds like there are several suggested features:

  1. Prevent being able to upvote yourself, suggested by @TheNain38 (and the title of this issue).
  2. Set the default count to 0, suggested by @HelloZeroNet as a counter to @TheNain38's request.
  3. Automatically upvote your comment or thread (like Reddit), as suggested by you.

I am going to move forward with @HelloZeroNet's suggestion: setting the default count to 0, but still letting yourself upvote your own comments.

If we still want Reddit-like auto-voting, then we can make a separate issue for that.

from zerotalk.

fiskr avatar fiskr commented on July 26, 2024

Here are the bits of logic to update to set the default count back to 0.
Just remove the +1 from these subqueries:

from zerotalk.

purplesyringa avatar purplesyringa commented on July 26, 2024

@HelloZeroNet Any thoughts on this?

from zerotalk.

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.