1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

chore: remove unintended changes

This commit is contained in:
David Wheatley
2021-12-20 16:33:34 +01:00
parent 837657831f
commit 3718673882
2 changed files with 2 additions and 5 deletions

View File

@@ -122,10 +122,7 @@ export default class Post extends Component {
* @returns {string[]} * @returns {string[]}
*/ */
classes(existing) { classes(existing) {
const classes = (existing || '') let classes = (existing || '').split(' ').concat(['Post']);
.split(' ')
.filter((x) => x.trim() !== '')
.concat(['Post']);
const user = this.attrs.post.user(); const user = this.attrs.post.user();
const discussion = this.attrs.post.discussion(); const discussion = this.attrs.post.discussion();

View File

@@ -55,6 +55,6 @@ export default class PostMeta extends Component {
* @returns {String} * @returns {String}
*/ */
getPermalink(post) { getPermalink(post) {
return app.forum.attribute('baseUrl') + app.route.post(post); return window.location.origin + app.route.post(post);
} }
} }