Merge lp:~motoster/gwibber/gwibber into lp:gwibber

Proposed by Welton Rodrigo Torres Nascimento
Status: Rejected
Rejected by: Robert Bruce Park
Proposed branch: lp:~motoster/gwibber/gwibber
Merge into: lp:gwibber
Diff against target: 12 lines (+1/-1)
1 file modified
gwibber/microblog/plugins/facebook/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~motoster/gwibber/gwibber
Reviewer Review Type Date Requested Status
Robert Bruce Park Disapprove
Ken VanDine Needs Fixing
Review via email: mp+130656@code.launchpad.net

Description of the change

Facebook messages get their sender profile picture using type large, which is not suitable to fit into avatar squarebox.

There is a square type available on the Graph API. This merge changes a url to use this.

This is my first use of bazar, ever. Please inform if I did something wrong.

To post a comment you must log in.
Revision history for this message
Welton Rodrigo Torres Nascimento (motoster) wrote :

This solves bug #1068911

Revision history for this message
Ken VanDine (ken-vandine) wrote :

The problem with this is the Unity preview for the gwibber lens needs 100x100 avatars. Specifying square only gets us a 50x50, perhaps it would be better to specify width and height.

For example:
https://graph.facebook.com/shaverm/picture?width=100&height=100

review: Needs Fixing
Revision history for this message
Robert Bruce Park (robru) wrote :

Thanks for taking the time to submit this patch, unfortunately Gwibber has gone through extensive changes recently and your patch no longer applies to the latest codebase.

Fortunately, the bug you were attempting to fix is no longer present in the current codebase. Gwibber is still downloading large avatars for the benefit of the Unity lens and the Ubuntu Touch project, but they scale nicely and do not skew when being displayed in Gwibber.

Please try out the latest Gwibber, I think you'll be quite pleased with what we've accomplished.

review: Disapprove

Unmerged revisions

1392. By Welton Rodrigo Torres Nascimento

Get square profile photos from facebook contacts.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gwibber/microblog/plugins/facebook/__init__.py'
2--- gwibber/microblog/plugins/facebook/__init__.py 2012-09-24 20:55:20 +0000
3+++ gwibber/microblog/plugins/facebook/__init__.py 2012-10-20 02:16:21 +0000
4@@ -217,7 +217,7 @@
5 "name": data["name"],
6 "id": str(data.get("id", '')),
7 "is_me": str(data.get("id", '')) == self.user_id,
8- "image": URL_PREFIX + data["id"] + "/picture?type=large" ,
9+ "image": URL_PREFIX + data["id"] + "/picture?type=square" ,
10 "url": "https://www.facebook.com/profile.php?id=" + str(data.get("id", ''))
11 }
12 return sender