mirror of
https://ghfast.top/https://github.com/discourse/discourse-follow.git
synced 2026-07-15 11:36:38 +08:00
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.
3 lines
87 B
JavaScript
3 lines
87 B
JavaScript
import UserStream from "discourse/components/user-stream";
|
|
|
|
export default UserStream;
|