mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Added border around post made by active user
This commit is contained in:
committed by
Daniël Klabbers
parent
6d78445569
commit
6668f1b7ee
@@ -39,7 +39,7 @@ export default class Post extends Component {
|
||||
view() {
|
||||
const attrs = this.attrs();
|
||||
|
||||
attrs.className = 'Post ' + (this.loading ? 'Post--loading ' : '') + (attrs.className || '');
|
||||
attrs.className = 'Post ' + (this.loading ? 'Post--loading ' : '') + (this.props.post.user() === app.session.user ? 'Post--self' : '') + (attrs.className || '');
|
||||
|
||||
return (
|
||||
<article {...attrs}>
|
||||
|
Reference in New Issue
Block a user