Merge lp:~ken-vandine/gwibber/lp_826323 into lp:gwibber

Proposed by Ken VanDine
Status: Merged
Merged at revision: 1318
Proposed branch: lp:~ken-vandine/gwibber/lp_826323
Merge into: lp:gwibber
Diff against target: 20 lines (+7/-1)
1 file modified
libgwibber/streams.vala (+7/-1)
To merge this branch: bzr merge lp:~ken-vandine/gwibber/lp_826323
Reviewer Review Type Date Requested Status
David Klasinc (community) Approve
Review via email: mp+98198@code.launchpad.net

Description of the change

more fallbacks for dupe detection, try with link_name, image_name, and video_name (LP: #826323)

To post a comment you must log in.
Revision history for this message
David Klasinc (bigwhale) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libgwibber/streams.vala'
2--- libgwibber/streams.vala 2012-03-14 20:43:43 +0000
3+++ libgwibber/streams.vala 2012-03-19 13:39:17 +0000
4@@ -694,10 +694,16 @@
5 _textid = gen_text_id (_html);
6 if (_textid.length < 1 && _link_description != null)
7 _textid = gen_text_id (_link_description);
8+ if (_textid.length < 1 && _link_name != null)
9+ _textid = gen_text_id (_link_name);
10 if (_textid.length < 1 && _image_url != null)
11 _textid = _image_url.strip ();
12- if (_textid.length < 1 && _image_url != null)
13+ if (_textid.length < 1 && _image_name != null)
14+ _textid = gen_text_id (_image_name);
15+ if (_textid.length < 1 && _video_url != null)
16 _textid = _video_url.strip ();
17+ if (_textid.length < 1 && _video_name != null)
18+ _textid = gen_text_id (_video_name);
19
20 string _t = utils.generate_time_string(_time);
21