mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
New component for post excerpts, which will be shown in search results
Perhaps also in user activity stream. They are used in the mentions extension. In order to generate the excerpt, each formatter can implement a “strip” method which basically converts block formatting into inline formatting.
This commit is contained in:
@ -12,6 +12,7 @@ Post.prototype.user = Model.one('user');
|
||||
Post.prototype.contentType = Model.prop('contentType');
|
||||
Post.prototype.content = Model.prop('content');
|
||||
Post.prototype.contentHtml = Model.prop('contentHtml');
|
||||
Post.prototype.excerpt = Model.prop('excerpt');
|
||||
|
||||
Post.prototype.editTime = Model.prop('editTime', Model.date);
|
||||
Post.prototype.editUser = Model.one('editUser');
|
||||
|
Reference in New Issue
Block a user