aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Thread.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Thread.js')
-rw-r--r--vnext/src/ui/Thread.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js
index 4982daed..b5a855f9 100644
--- a/vnext/src/ui/Thread.js
+++ b/vnext/src/ui/Thread.js
@@ -7,6 +7,7 @@ import Spinner from './Spinner';
import Avatar from './Avatar';
import { UserLink } from './UserInfo';
import Button from './Button';
+import defaultAvatar from '../assets/av-96.png';
import { format, embedUrls } from '../utils/embed';
@@ -58,6 +59,13 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC
uri: author.uri
});
}
+ }).catch(e => {
+ setAuthor({
+ uid: 0,
+ uname: userRef.current.uri,
+ uri: author.uri,
+ avatar: defaultAvatar
+ });
});
}
return () => {