mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Update for new activity API
This commit is contained in:
parent
72a676ddfd
commit
cfb6ad7902
4
extensions/tags/js/bootstrap.js
vendored
4
extensions/tags/js/bootstrap.js
vendored
|
@ -10,7 +10,7 @@ import ActionButton from 'flarum/components/action-button';
|
|||
import NavItem from 'flarum/components/nav-item';
|
||||
import DiscussionComposer from 'flarum/components/discussion-composer';
|
||||
import SettingsPage from 'flarum/components/settings-page';
|
||||
import PostActivity from 'flarum/components/post-activity';
|
||||
import PostedActivity from 'flarum/components/posted-activity';
|
||||
import icon from 'flarum/helpers/icon';
|
||||
import app from 'flarum/app';
|
||||
|
||||
|
@ -216,7 +216,7 @@ app.initializers.add('categories', function() {
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
// Add a category label next to the discussion title in post activity items.
|
||||
extend(PostActivity.prototype, 'headerItems', function(items) {
|
||||
extend(PostedActivity.prototype, 'headerItems', function(items) {
|
||||
var category = this.props.activity.post().discussion().category();
|
||||
if (category) {
|
||||
items.add('category', categoryLabel(category));
|
||||
|
|
Loading…
Reference in New Issue
Block a user