1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:55:56 +00:00

move the following to Article:

+       static function format_article_enclosures($id, $always_display_enclosures,
+       static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
+       static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) {
+       static function format_tags_string($tags) {
+       static function format_article_labels($labels) {
+       static function format_article_note($id, $note, $allow_edit = true) {
+       static function get_article_enclosures($id) {
This commit is contained in:
Andrew Dolgov
2017-05-04 14:38:45 +03:00
parent 4122da0290
commit 7e5f8d9fb3
5 changed files with 499 additions and 501 deletions

View File

@@ -347,7 +347,7 @@ class API extends Handler {
while ($line = $this->dbh->fetch_assoc($result)) {
$attachments = get_article_enclosures($line['id']);
$attachments = Article::get_article_enclosures($line['id']);
$article = array(
"id" => $line["id"],
@@ -769,7 +769,7 @@ class API extends Handler {
);
if ($include_attachments)
$headline_row['attachments'] = get_article_enclosures(
$headline_row['attachments'] = Article::get_article_enclosures(
$line['id']);
if ($show_excerpt)