mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
chore: function names
This commit is contained in:
parent
7c885c72fd
commit
d154388468
|
@ -5,7 +5,7 @@ import CommentPost from 'flarum/forum/components/CommentPost';
|
|||
|
||||
import reply from './utils/reply';
|
||||
|
||||
export default function () {
|
||||
export default function addPostReplyAction() {
|
||||
extend(CommentPost.prototype, 'actionItems', function (items) {
|
||||
const post = this.attrs.post;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import DiscussionPage from 'flarum/forum/components/DiscussionPage';
|
|||
import IndexPage from 'flarum/forum/components/IndexPage';
|
||||
import { truncate } from 'flarum/common/utils/string';
|
||||
|
||||
export default function addStickyControl() {
|
||||
export default function addStickyExcerpt() {
|
||||
extend(DiscussionListState.prototype, 'requestParams', function (params) {
|
||||
if (app.current.matches(IndexPage) || app.current.matches(DiscussionPage)) {
|
||||
params.include.push('firstPost');
|
||||
|
|
Loading…
Reference in New Issue
Block a user