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:
@@ -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();
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user