Daniel W. Ottey (dottey) wrote in lj_dev,
Daniel W. Ottey

  • Mood:

Patch ready to add "&nc=xx" to the end of talkread URLs

I've been working in my goathack on the userprop to add &nc=xx (where xx is the total number of comments for the entry) to the end of talkread URLs (so that those links become "unvisited" if new comments are added).

This user option will toggle whether or not &nx=xx is added at the end of each talkread URL the users comes across while he is logged in. It does not affect the user's journal, rather it affects the journals the user sees.

I'm pretty sure the patch is ready, though I've never made or submitted a patch before. I think opiummmm helped me out enough with that though. I've tested the changes myself, and they seem to work. But I know bradfitz doesn't like to even look at patches without them being checked and tested first. This is where you guys come in.

Please check out my goathack ... Create a new user, and toggle the following option in editinfo.bml.
Use nc==xx URLs on talkread links
Check this if you want your browser to display comment links with new comments as unvisited.
This should work on the lastn view as well as the friends view. The text may be edited at bradfitz's discretion.

The patch file is available here:

Please post comments so that bradfitz knows its been tested, and let me know if you come across any problems.

...And, if lj_dev was the wrong place to post this, then I'm sorry...

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded