Skip to content

Commit

Permalink
Use the favicon, if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 16, 2014
1 parent f64978e commit b0cddaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trean/lib/Api.php
Expand Up @@ -98,9 +98,10 @@ public function searchTags($names, $max = 10, $from = 0,
$bookmark = $GLOBALS['trean_gateway']->getBookmark($bookmark_id);
$return[] = array(
'title' => $bookmark->title,
'desc' => $bookmark->description,
'desc' => empty($bookmark->description) ? $bookmark->title : $bookmark->description,
'view_url' => $redirectUrl->add('b', $bookmark->id),
'app' => 'trean',
'icon' => $bookmark->favicon_url
);
} catch (Exception $e) {
}
Expand Down

0 comments on commit b0cddaf

Please sign in to comment.