Merge lp:~ken-vandine/friends/fix-facebook-name into lp:friends
Proposed by
Ken VanDine
Status: | Merged |
---|---|
Merged at revision: | 33 |
Proposed branch: | lp:~ken-vandine/friends/fix-facebook-name |
Merge into: | lp:friends |
Diff against target: |
13 lines (+2/-1) 1 file modified
friends/protocols/facebook.py (+2/-1) |
To merge this branch: | bzr merge lp:~ken-vandine/friends/fix-facebook-name |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Bruce Park | Approve | ||
Review via email: mp+131700@code.launchpad.net |
Description of the change
Fix setting the sender's name, we don't want to see facebook ID numbers in the stream.
To post a comment you must log in.
On 12-10-26 06:01 PM, Ken VanDine wrote: get('id' , '') get('name' , '') get('id' , '') format( id=sender_ id) + '/picture? type=large' ) get('name' , '')
> from_record = entry.get('from')
> if from_record is not None:
> - args['sender'] = sender_id = from_record.
> + args['sender'] = from_record.
> + sender_id = from_record.
> args['icon_uri'] = Avatar.get_image(
> API_BASE.
> args['sender_nick'] = from_record.
Ken, I had noticed this problem earlier, but I'm not sure how to handle
it. Your change makes sender_nick and sender set to the same value... is
that ok? Also, you're not storing the sender_id anywhere. Are you sure
we won't need that later for anything?
I know Facebook doesn't really have a concept of nicknames (at least not
like twitter has screen names vs display names), although some people do
have id's that aren't just random numbers. Maybe we should store the
facebook id in the sender_nick column?
Also, you have one extra space next to the equal sign, please fix that ;-)