Skip to content

Commit

Permalink
Added meta title to following page (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 authored Jun 3, 2020
1 parent 23aa6a6 commit 921b6f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/src/forum/addSubscriptionFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default function addSubscriptionFilter() {
}
});

extend(IndexPage.prototype, 'config', function () {
if (m.route() == "/following") {
app.setTitle(app.translator.trans('flarum-subscriptions.forum.following.meta_title_text'));
}
});

extend(DiscussionList.prototype, 'requestParams', function(params) {
if (this.props.params.filter === 'following') {
params.filter.q = (params.filter.q || '') + ' is:following';
Expand Down

0 comments on commit 921b6f9

Please sign in to comment.