discourse-follow/assets/javascripts/discourse/routes
Osama Sayegh 2caaba476d
FIX: Apply post decorations to posts shown in the follow feed (#37)
Bug report on Meta: https://meta.discourse.org/t/follow-plugin/110579/289?u=osama (last paragraph of the post)

The plugin currently rolls its own implementation of the follow posts feed without reusing much of core's implementation. On the surface the custom implementation seems to be working fine; however, when there are themes/plugins applying custom decoration on posts, those decorations won't apply to posts when rendered in the follow feed. Core also has its own post decorations here:

a3fde50b62/app/assets/javascripts/discourse/app/initializers/post-decorations.js (L16)

which are responsible for making `lightbox` work, syntax highlighting for code blocks and a few more little things which don't work in the current implementation of the follow posts feed. The linked bug report on Meta is about images lightbox not working in the follow posts feed.

This PR removes the custom implementation of the posts feed and adds a new `{{follow-post-stream}}` component which inherits from core's `{{user-stream}}` component which has `didInsertElement` hook that applies post decorations.
2021-10-13 19:08:26 +03:00
..
feed.js FIX: Apply post decorations to posts shown in the follow feed (#37) 2021-10-13 19:08:26 +03:00
follow-index.js UX: Move followed users posts feed to the Follows tab (#13) 2021-10-07 20:34:07 +03:00
followers.js FEATURE: Introduce followed users posts feed (#8) 2021-10-07 20:34:07 +03:00
following.js UX: Move followed users posts feed to the Follows tab (#13) 2021-10-07 20:34:07 +03:00