|
|
@ -324,9 +324,9 @@ class FeverAPI |
|
|
|
$feeds[] = array( |
|
|
|
$feeds[] = array( |
|
|
|
'id' => $feed->id(), |
|
|
|
'id' => $feed->id(), |
|
|
|
'favicon_id' => $feed->id(), |
|
|
|
'favicon_id' => $feed->id(), |
|
|
|
'title' => $feed->name(), |
|
|
|
'title' => escapeToUnicodeAlternative($feed->name(), true), |
|
|
|
'url' => $feed->url(), |
|
|
|
'url' => htmlspecialchars_decode($feed->url(), ENT_QUOTES), |
|
|
|
'site_url' => $feed->website(), |
|
|
|
'site_url' => htmlspecialchars_decode($feed->website(), ENT_QUOTES), |
|
|
|
'is_spark' => 0, // unsupported |
|
|
|
'is_spark' => 0, // unsupported |
|
|
|
'last_updated_on_time' => $feed->lastUpdate(), |
|
|
|
'last_updated_on_time' => $feed->lastUpdate(), |
|
|
|
); |
|
|
|
); |
|
|
@ -349,7 +349,7 @@ class FeverAPI |
|
|
|
foreach ($categories as $category) { |
|
|
|
foreach ($categories as $category) { |
|
|
|
$groups[] = array( |
|
|
|
$groups[] = array( |
|
|
|
'id' => $category->id(), |
|
|
|
'id' => $category->id(), |
|
|
|
'title' => $category->name(), |
|
|
|
'title' => escapeToUnicodeAlternative($category->name(), false), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -535,10 +535,10 @@ class FeverAPI |
|
|
|
$items[] = array( |
|
|
|
$items[] = array( |
|
|
|
'id' => $entry->id(), |
|
|
|
'id' => $entry->id(), |
|
|
|
'feed_id' => $entry->feed(false), |
|
|
|
'feed_id' => $entry->feed(false), |
|
|
|
'title' => $entry->title(), |
|
|
|
'title' => escapeToUnicodeAlternative($entry->title(), true), |
|
|
|
'author' => $entry->authors(true), |
|
|
|
'author' => escapeToUnicodeAlternative($entry->authors(true), true), |
|
|
|
'html' => $entry->content(), |
|
|
|
'html' => $entry->content(), |
|
|
|
'url' => $entry->link(), |
|
|
|
'url' => htmlspecialchars_decode($entry->link(), ENT_QUOTES), |
|
|
|
'is_saved' => $entry->isFavorite() ? 1 : 0, |
|
|
|
'is_saved' => $entry->isFavorite() ? 1 : 0, |
|
|
|
'is_read' => $entry->isRead() ? 1 : 0, |
|
|
|
'is_read' => $entry->isRead() ? 1 : 0, |
|
|
|
'created_on_time' => $entry->date(true), |
|
|
|
'created_on_time' => $entry->date(true), |
|
|
|