Skip to content

Commit

Permalink
Fixes dasmurphy#31: Feeds no longer sync to Reeder for iOS with TT-RS…
Browse files Browse the repository at this point in the history
…S v17.4.

Rename get_article_enclosures() to Article::get_article_enclosures()
and ccache_update() to CCache::update().
  • Loading branch information
Christian Dönges committed Jun 5, 2017
1 parent c4c8660 commit 34a78dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fever/fever_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ function getItems()
{
$line_content = $this->my_sanitize($line["content"], $line["link"]);
if (ADD_ATTACHED_FILES){
$enclosures = get_article_enclosures($line["id"]);
$enclosures = Article::get_article_enclosures($line["id"]);
if (count($enclosures) > 0) {
$line_content .= '<ul type="lower-greek">';
foreach ($enclosures as $enclosure) {
Expand Down Expand Up @@ -713,7 +713,7 @@ function setItem($id, $field_raw, $mode, $before = 0)
WHERE ref_id IN ($article_ids)");

while ($line = $this->dbh->fetch_assoc($result)) {
ccache_update($line["feed_id"], $_SESSION["uid"]);
CCache::update($line["feed_id"], $_SESSION["uid"]);
}
}
}
Expand Down Expand Up @@ -782,7 +782,7 @@ function setFeed($id, $cat, $before=0)
AND owner_uid = '" . db_escape_string($_SESSION["uid"]) . "' AND unread = true AND feed_id = " . intval($id) . " AND date_entered < '" . date("Y-m-d H:i:s", $before) . "' ) as tmp)");

}
ccache_update($id,$_SESSION["uid"], $cat);
CCache::update($id,$_SESSION["uid"], $cat);
}
}

Expand Down

0 comments on commit 34a78dc

Please sign in to comment.