aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-08-08 12:04:02 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-08 12:04:02 +0200
commit82ac1d1e676f93b1567eba608c00c6edaf401a9e (patch)
tree1b3609df25f3eb1892aa7d359f52b82d680830a7 /app/Models/Context.php
parent240afa7d4dcf33de4575a1531e2db3c9f4400c1f (diff)
Refactor entry-to-GReader API format (#4490)
* Refactor entry to GReader API format Some code was copied in two locations and not completely uniform. Cleaning of related variables and functions (e.g. better types for entries and categories as objects vs. as IDs). Usecase: I need to call the same GReader-compatible serialization from an extension * Fixed some edge cases * Keep summary instead of content `summary` and `content` seems to be used interchangeably in the Google Reader API. We have been using `summary` for our client API and `content` in our export/import, so stick to that.
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index ab855966b..db8dd1f09 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -299,7 +299,7 @@ class FreshRSS_Context {
}
}
self::$current_get['feed'] = $id;
- self::$current_get['category'] = $feed->category();
+ self::$current_get['category'] = $feed->categoryId();
self::$name = $feed->name();
self::$description = $feed->description();
self::$get_unread = $feed->nbNotRead();