Log in

No account? Create an account
Getting post comments? - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

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)

From: evan
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). :)
(Reply) (Thread)
From: amyvartdal
2002-09-07 05:49 am (UTC)
I looked through lj_dev, and behold http://www.livejournal.com/talkread.bml?journal=lj_dev&itemid=446834, someone else has thought the same thought. I'd implement it myself had it not been for the fact that I know Pascal and Perl, which isn't of that much help :/
(Reply) (Parent) (Thread)
[User Picture]From: dottey
2002-09-07 08:14 am (UTC)
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!
(Reply) (Parent) (Thread)
From: amyvartdal
2002-09-07 09:22 am (UTC)
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 :)
(Reply) (Parent) (Thread)
[User Picture]From: gaal
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. :)
(Reply) (Parent) (Thread)
[User Picture]From: ziemkowski
2002-10-28 01:20 am (UTC)
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).

(Reply) (Parent) (Thread)
From: amyvartdal
2002-10-28 08:57 pm (UTC)
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..
(Reply) (Parent) (Thread)
[User Picture]From: ziemkowski
2002-10-29 05:56 pm (UTC)
Did you see Brad's post to lj_dev 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?

(Reply) (Parent) (Thread)