Просмотр исходного кода

`user/{userID}/state/com.google/read` is missing in `categories` section for read entries

Frédéric Guillot 2 лет назад
Родитель
Сommit
1bd5d57884
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      internal/googlereader/handler.go

+ 1 - 1
internal/googlereader/handler.go

@@ -992,7 +992,7 @@ func (h *handler) streamItemContentsHandler(w http.ResponseWriter, r *http.Reque
 		if entry.Feed.Category.Title != "" {
 			categories = append(categories, fmt.Sprintf(UserLabelPrefix, userID)+entry.Feed.Category.Title)
 		}
-		if entry.Starred {
+		if entry.Status == model.EntryStatusRead {
 			categories = append(categories, userRead)
 		}