about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-01-10 20:19:45 +0100
committerThibaut Girka <thib@sitedethib.com>2019-01-10 21:00:33 +0100
commit2b2584a37b50d94ae6a48d90879228fc7e5b0a9d (patch)
tree7d62d334548b680b3de694d04f5c7d29318483eb /app/javascript/flavours/glitch/features
parenta2a64ecd3e3551707412c47f0d16e484dea25632 (diff)
[Glitch] Display fallback link card thumbnail when none is given
Port 1512af2811cb5b2ffccac5452eb291b1af46f89d to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r--app/javascript/flavours/glitch/features/status/components/card.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/card.js b/app/javascript/flavours/glitch/features/status/components/card.js
index 743fe779a..1e1604d5c 100644
--- a/app/javascript/flavours/glitch/features/status/components/card.js
+++ b/app/javascript/flavours/glitch/features/status/components/card.js
@@ -195,6 +195,12 @@ export default class Card extends React.PureComponent {
           {thumbnail}
         </div>
       );
+    } else {
+      embed = (
+        <div className='status-card__image'>
+          <i className='fa fa-file-text' />
+        </div>
+      );
     }
 
     return (