Skip to content

Issue #1425: single post is expanded by default

ivan zlax requested to merge zlaxy/core:dev into dev

Issue #1425 (closed):

Collapsing/expanding is necessary when user viewing many posts (in the feed/network, on the channel) - if a user is interested in something - he or she will expand some post.

But in case user opens a separate post - it means that this post in any case interested the user and he or she will in any case expand it when it is minimised by default. In my opinion, this is expected behaviour: opening individual posts by default as expanded.

if(!(pageHasMoreContent)) expanded_items.push(id); - in single posts this will expand posts and comments by default if there is no more content on the page. I have tested this option - in my opinion it works correctly and expectedly.

Merge request reports