Skip to content

Commit

Permalink
chore: function names
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 29, 2023
1 parent 7c885c7 commit d154388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/mentions/js/src/forum/addPostReplyAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion extensions/sticky/js/src/forum/addStickyExcerpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d154388

Please sign in to comment.