diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-01-07 15:42:14 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-01-09 09:25:32 +0100 |
commit | c511c3f010c45e08e7736a935bf721527db806c8 (patch) | |
tree | 5abc1ddd09b4d5b9b779f6d057fbda58015eab68 /client/src/app/shared/actor/actor.model.ts | |
parent | fbc77eb648bda9add4634c08dbb6af48c3670b5d (diff) | |
download | PeerTube-c511c3f010c45e08e7736a935bf721527db806c8.tar.gz PeerTube-c511c3f010c45e08e7736a935bf721527db806c8.tar.zst PeerTube-c511c3f010c45e08e7736a935bf721527db806c8.zip |
Show default avatar on network error for comments
Diffstat (limited to 'client/src/app/shared/actor/actor.model.ts')
-rw-r--r-- | client/src/app/shared/actor/actor.model.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/shared/actor/actor.model.ts b/client/src/app/shared/actor/actor.model.ts index 285f71ce0..9cc51b948 100644 --- a/client/src/app/shared/actor/actor.model.ts +++ b/client/src/app/shared/actor/actor.model.ts | |||
@@ -20,6 +20,10 @@ export abstract class Actor implements ActorServer { | |||
20 | 20 | ||
21 | if (actor && actor.avatar) return absoluteAPIUrl + actor.avatar.path | 21 | if (actor && actor.avatar) return absoluteAPIUrl + actor.avatar.path |
22 | 22 | ||
23 | this.GET_DEFAULT_AVATAR_URL() | ||
24 | } | ||
25 | |||
26 | static GET_DEFAULT_AVATAR_URL () { | ||
23 | return window.location.origin + '/client/assets/images/default-avatar.png' | 27 | return window.location.origin + '/client/assets/images/default-avatar.png' |
24 | } | 28 | } |
25 | 29 | ||