Skip to content

Commit

Permalink
Address lastPost not being included #1 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Mar 5, 2021
1 parent b71e9bd commit aed8c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/forum/addSummaryExcerpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

import { extend } from 'flarum/extend';
import app from 'flarum/app';
import DiscussionList from 'flarum/components/DiscussionList';
import DiscussionListState from 'flarum/states/DiscussionListState';
import DiscussionListItem from 'flarum/components/DiscussionListItem';
import { truncate } from 'flarum/utils/string';

export default function addSummaryExcerpt() {
extend(DiscussionList.prototype, 'requestParams', function (params) {
extend(DiscussionListState.prototype, 'requestParams', function (params) {
params.include.push(['firstPost', 'lastPost']);
});

Expand Down

0 comments on commit aed8c6b

Please sign in to comment.