From d5d769ebb1c9cfcb0a432696919170581dc11dc9 Mon Sep 17 00:00:00 2001
From: Matthew Kilgore <tankerkiller125@gmail.com>
Date: Fri, 1 Nov 2019 22:55:47 -0400
Subject: [PATCH] Added border around post made by active user

---
 js/src/forum/components/Post.js | 2 +-
 less/forum/Post.less            | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/js/src/forum/components/Post.js b/js/src/forum/components/Post.js
index 2043357ed..5b410f684 100644
--- a/js/src/forum/components/Post.js
+++ b/js/src/forum/components/Post.js
@@ -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}>
diff --git a/less/forum/Post.less b/less/forum/Post.less
index 7b226385d..21758e1ff 100644
--- a/less/forum/Post.less
+++ b/less/forum/Post.less
@@ -202,6 +202,9 @@
 .Post--loading {
   opacity: 0.5;
 }
+.Post--self {
+  border: solid @config-primary-color;
+}
 .PostMeta {
   display: inline;
 }