mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
chore: remove unintended changes
This commit is contained in:
@@ -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();
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user