chore: function names

This commit is contained in:
Sami Mazouz 2023-10-29 13:26:36 +01:00
parent 7c885c72fd
commit d154388468
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import CommentPost from 'flarum/forum/components/CommentPost';
import reply from './utils/reply'; import reply from './utils/reply';
export default function () { export default function addPostReplyAction() {
extend(CommentPost.prototype, 'actionItems', function (items) { extend(CommentPost.prototype, 'actionItems', function (items) {
const post = this.attrs.post; const post = this.attrs.post;

View File

@ -6,7 +6,7 @@ import DiscussionPage from 'flarum/forum/components/DiscussionPage';
import IndexPage from 'flarum/forum/components/IndexPage'; import IndexPage from 'flarum/forum/components/IndexPage';
import { truncate } from 'flarum/common/utils/string'; import { truncate } from 'flarum/common/utils/string';
export default function addStickyControl() { export default function addStickyExcerpt() {
extend(DiscussionListState.prototype, 'requestParams', function (params) { extend(DiscussionListState.prototype, 'requestParams', function (params) {
if (app.current.matches(IndexPage) || app.current.matches(DiscussionPage)) { if (app.current.matches(IndexPage) || app.current.matches(DiscussionPage)) {
params.include.push('firstPost'); params.include.push('firstPost');