~robru/friends/lp-1185684

« back to all changes in this revision

Viewing changes to friends/protocols/facebook.py

  • Committer: J Phani Mahesh
  • Date: 2013-05-30 07:17:13 UTC
  • Revision ID: phanimahesh@gmail.com-20130530071713-scsda9pdgpys4tjj
Fix a stupid mistake in the previous commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
            args['from_me'] = (sender_id == self._account.user_id)
100
100
 
101
101
        # Fix for LP:1185684 - JPM
102
 
        args['url'] = STORY_PERMALINK.format(id=sender_id,post_id=message_id)
 
102
        post_id= message_id.split('_')[1]
 
103
        args['url'] = STORY_PERMALINK.format(id=sender_id,post_id=post_id)
103
104
 
104
105
        # Normalize the timestamp.
105
106
        timestamp = entry.get('updated_time', entry.get('created_time'))