Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
What problem did you encounter?
When the news app is (re)loaded all folders are collapsed.
I'm not sure if this behaviour is intended, but I couldn't find anything in commit messages or the changelog.
Explain what you did to encounter the issue
Can confirm and I don't think it's intended.
I can fix the opened state locally with the following, but I don't know whether it's the right place, whether it has side-effects and which other data were returned in older versions.
diff --git a/lib/Db/Folder.php b/lib/Db/Folder.php
index d452bb7d4..6f208309b 100644
--- a/lib/Db/Folder.php
+++ b/lib/Db/Folder.php
@@ -167,6 +167,7 @@ class Folder extends Entity implements IAPI, \JsonSerializable
[
'id',
'name',
+ 'opened',
'feeds'
]
);
It probably changed in 8abddeab4f541883721d912f97dec07bffdfc6b8 with the switch to $this->serialize(). Any idea @SMillerDev?
https://github.com/nextcloud/news/blob/8abddeab4f541883721d912f97dec07bffdfc6b8/lib/Controller/FolderController.php#L65
It seems like earlier versions didn't serialize the folder because there is barely any data in there. I'd say that is the right fix @anoymouserver
Most helpful comment
Can confirm and I don't think it's intended.
I can fix the opened state locally with the following, but I don't know whether it's the right place, whether it has side-effects and which other data were returned in older versions.
It probably changed in 8abddeab4f541883721d912f97dec07bffdfc6b8 with the switch to
$this->serialize(). Any idea @SMillerDev?https://github.com/nextcloud/news/blob/8abddeab4f541883721d912f97dec07bffdfc6b8/lib/Controller/FolderController.php#L65