Repository: miniflux/v2 (language: go)

Issue:
[Google Reader API] `user/{userID}/state/com.google/read` is missing in `categories` section for read entries
Here is screenshot of web gui.

![image](https://github.com/miniflux/v2/assets/1255302/b0c2ebb4-9bbd-457c-b189-7305bc975d3d)

In web gui, this message is marked as "read". But fetching same article via "item/ids" API endpoint returns this JSON data, in which article is not marked as read (it does not have `user/2/state/com.google/read` label) and is still unread instead:

```json
    {
      "id": "tag:google.com,2005:reader/item/000000000002294d",
      "categories": [
        "user/2/state/com.google/reading-list",
        "user/2/label/06_sci"
      ],
      "title": "Science Editor",
      "crawlTimeMsec": "1697563080000000",
      "timestampUsec": "1697563080000000",
      "published": 1697563080,
      "updated": 1697563080,
      "author": "",
      "alternate": [
        {
          "href": "https://www.planetary.org/careers/science-editor",
          "type": "text/html"
        }
      ],
      "summary": {
        "direction": "ltr",
        "content": "As our Science Editor, you\u0026#39;ll translate complex space science concepts into engaging and understandable web content, videos, and online courses, and ensure that all content is both scientifically accurate and optimized for online success."
      },
      "content": {
        "direction": "ltr",
        "content": "As our Science Editor, you\u0026#39;ll translate complex space science concepts into engaging and understandable web content, videos, and online courses, and ensure that all content is both scientifically accurate and optimized for online success."
      },
      "origin": {
        "streamId": "feed/226",
        "title": "Planetary Society",
        "htmlUrl": "http://www.planetary.org"
      },
      "enclosure": [],
      "canonical": [
        {
          "href": "https://www.planetary.org/careers/science-editor"
        }
      ]
    },
```


Discussion / hints:

Fix patch:
diff --git a/internal/googlereader/handler.go b/internal/googlereader/handler.go
index 1b749ac2f15..b971b16350e 100644
--- a/internal/googlereader/handler.go
+++ b/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)
 		}
 


Test patch: