Skip to content
Browse files

Removed Shared item from Subscriptions. It's deprecated

  • Loading branch information...
1 parent 3dccb2a commit f6864594e7dc9aa8e6d5dd2fe92162f66e5b0c2d @Tibfib committed
Showing with 6 additions and 8 deletions.
  1. +6 −8 google-reader.js
View
14 google-reader.js
@@ -368,13 +368,14 @@
};
//organizes feeds based on labels.
- var organizeFeeds = function (feeds, labels, unreadCounts, userPrefs) {
- var unlabeled = [];
+ var organizeFeeds = function (feeds, inLabels, unreadCounts, userPrefs) {
+ var unlabeled = [],
+ labels = _(inLabels).reject(function(label){
+ return reader.correctId(label.id) === "user/-/state/com.google/broadcast" || reader.correctId(label.id) === "user/-/state/com.blogger/blogger-following";
+ });
- //prepare labels
labels.unshift({title: "All", id: reader.TAGS["reading-list"], feeds: feeds, isAll: true, isSpecial: true});
- labels.pop(); //remove "user/-/state/com.blogger/blogger-following". not exactly future friendly *shrug*
-
+
var labelTitleRegExp = /[^\/]+$/i;
_(labels).each(function (label) {
@@ -384,9 +385,6 @@
if (label.title === "starred") {
label.title = _(label.title).capitalize();
label.isSpecial = true;
- } else if (label.title === "broadcast") {
- label.title = "Shared";
- label.isSpecial = true;
} else if (!label.isSpecial) {
label.isLabel = true;
}

0 comments on commit f686459

Please sign in to comment.
Something went wrong with that request. Please try again.