Changeset 753 for confluence

Show
Ignore:
Timestamp:
04/06/10 08:35:27 (2 years ago)
Author:
confluence
Message:

bolded username in description

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • confluence/feedfilters/twitterfilter.py

    r752 r753  
    5252    text = linknames.sub(r"<a href='http://twitter.com/\1'>@\1</a>", text) 
    5353    text = hashtags.sub(r"\1<a href='http://search.twitter.com/search?q=%23\1'>#\2</a>", text) 
     54    text = re.sub(r"^%s:" % username, "<b>%s:</b>" % username, text) 
    5455    text += " <a href='http://twitter.com/home?status=@%s%%20&in_reply_to_status_id=%s&in_reply_to=%s'>Reply</a>" % (username, statusid, username) 
    5556    description.data = text