|Getting post comments?
||[Sep. 7th, 2002|09:46 am]
LiveJournal Client Discussions
I was looking through the client<->server documentation, but I couldn't find what I'm looking for: getting the number(if any) and (ideally) the comments made to a post. Is there a way of doing this at the moment? Or do I have to beg the developers to put it in?|
The reasons why I want it is because I maintain another diary which is an exact mirror to my LJ one(or the other way around actually). And I'd like to include comments made on LJ, or just a link saying how many comments were made on LJ for this post.
(sorry if I've stuffed anything up, first time I post to a community)
2002-09-07 05:14 am (UTC)
The current protocol doesn't support it. You're welcome to suggest it (suggestions
) but it isn't likely to happen unless you implement it yourself (lj_dev
The LJ code, especially the protocol libraries, are mostly in Perl. BML is really only used for browser output, and is easy enough to learn as its just a mixing of Perl and HTML. You can easily pickup BML just by looking at the code.
But for the protocol libraries, its mostly - if not all - Perl. If you know Perl, you're as good of a candidate as any do work on this!
Yes, I found that out later, I somehow thought it was all C & BML. I might look into it. I'll have to poke around the sources for a bit before making my mind up. But seeing as I'm neither studying nor working atm, I have plenty of time and should try to do something productive :)
2002-09-07 05:26 pm (UTC)
Please give it a shot! I don't have the resources to do server development myself at the moment, but am really interested in this feature. If you work on this, I promise to make a client that doesn't suck. :)
Have you done any work on this?
I'd also like to see this feature added to the protocol for my client. I wont be able to commit time to adding it for another month or so, but if nobody has by then, I'll gladly do so.
If so, how are you going about it? I was thinking of just updating getevent(s).
I have working code for getting one or a thread of messages(ie: all messages given an entry). which works ok.
But there's still work to be done. I still need to look into issues given LJs DB clustering, as well as limiting and telling the client that the request was limited and methods of getting the limited result.
It is heavily built upon getevents.
It's still a lot work in progress, although I might have broken my mod_perl support, and further progress is hindered due to this..
Did you see Brad's post
today? He mentions replacing syncitems with other facilities, and in it he mentions fetching comment meta-data. Looks like that just might be what we were looking for?