Commit 18f3722561fab03042d99704c1dd2e47ecb7a1be
Added second check for neutral title on FacebookPostedItems when no text is posted to accompany a link
| |   |
| 9 | 9 | |
| 10 | 10 | $matches = array(); |
| 11 | 11 | preg_match('/\<span class="story_comment"\>(.+)\<\/span\>\<span class="end_quote"\>/i', $summary, $matches); |
| $story_comment = strip_tags($matches[1]); |
| $story_comment = ''; |
| if ($matches) { |
| $story_comment = strip_tags($matches[1]); |
| } else { |
| // take the link title |
| $matches = array(); |
| preg_match('/\<div class="title"\>(.+)<\/div\>\<div class="url"\>/i', $summary, $matches); |
| $story_comment = strip_tags($matches[1]); |
| } |
| 13 | 21 | |
| 14 | 22 | // Sometimes the story_comment contains a link, but when coming |
| 15 | 23 | // through ping.fm, Facebook strips it out... Will append if not |