1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +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[]}
*/
classes(existing) {
const classes = (existing || '')
.split(' ')
.filter((x) => x.trim() !== '')
.concat(['Post']);
let classes = (existing || '').split(' ').concat(['Post']);
const user = this.attrs.post.user();
const discussion = this.attrs.post.discussion();

View File

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