Git Product home page Git Product logo

Comments (4)

avinashbot avatar avinashbot commented on August 18, 2024 1

That's a relief! I'll leave this open until I release a more substantial fix.

from redd.

avinashbot avatar avinashbot commented on August 18, 2024

Don't worry about it, working with the reddit API has more than trained me to deal with vagueness and inconsistency 😉. After doing some research, this may be a combination of issues on both reddit's and my end.

Temporary Fix (?)

Could you try comment.reload and then see if that loads the comments? If it does, I can be sure that the issue is what I think it is. Thanks a lot for your help!

Details

I'll describe this in intense detail to help anyone in the future struggling with this obscure aspect of the reddit API.

All comment (t1) objects have an attribute called replies. If the comment has replies, it's a Listing. If the comment has no replies or if the replies aren't included in this response (like from a /api/info call) the replies key is an empty string, instead of an empty listing or just null like a sane API. Reddit's mobile website does a sort of check as well (commentTreeUtils.js).

Redd assumed that an empty string meant no comments, which is clearly incorrect.

from redd.

christopher-dG avatar christopher-dG commented on August 18, 2024

reload works! Thanks so much.

from redd.

mwpastore avatar mwpastore commented on August 18, 2024

Hi @avinashbot, any updates on this? I'm having a similar issue on master and reloading the comment doesn't fix it.

from redd.

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.