about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/status_prepend.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-03-16 20:29:42 +0100
committerThibaut Girka <thib@sitedethib.com>2018-03-16 23:16:20 +0100
commit6f0e50f9a0f8decc64acc92e02faace8e29153ad (patch)
treea46c387a411e588e55f5ed0ac6d6d57c6b582cd9 /app/javascript/flavours/glitch/components/status_prepend.js
parentcd73af3bd08f070ebb88e9e1afe39bf414683496 (diff)
[Glitch] Federate pinned statuses over ActivityPub
Port 9110db41c53a2f3f22affc23b364362133997d3e to glitch
Diffstat (limited to 'app/javascript/flavours/glitch/components/status_prepend.js')
-rw-r--r--app/javascript/flavours/glitch/components/status_prepend.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/components/status_prepend.js b/app/javascript/flavours/glitch/components/status_prepend.js
index bd2559e46..f4ef83135 100644
--- a/app/javascript/flavours/glitch/components/status_prepend.js
+++ b/app/javascript/flavours/glitch/components/status_prepend.js
@@ -34,6 +34,10 @@ export default class StatusPrepend extends React.PureComponent {
       </a>
     );
     switch (type) {
+    case 'featured':
+      return (
+        <FormattedMessage id='status.pinned' defaultMessage='Pinned toot' />
+      );
     case 'reblogged_by':
       return (
         <FormattedMessage
@@ -67,11 +71,11 @@ export default class StatusPrepend extends React.PureComponent {
     const { type } = this.props;
 
     return !type ? null : (
-      <aside className={type === 'reblogged_by' ? 'status__prepend' : 'notification__message'}>
-        <div className={type === 'reblogged_by' ? 'status__prepend-icon-wrapper' : 'notification__favourite-icon-wrapper'}>
+      <aside className={type === 'reblogged_by' || type === 'featured' ? 'status__prepend' : 'notification__message'}>
+        <div className={type === 'reblogged_by' || type === 'featured' ? 'status__prepend-icon-wrapper' : 'notification__favourite-icon-wrapper'}>
           <i
             className={`fa fa-fw fa-${
-              type === 'favourite' ? 'star star-icon' : 'retweet'
+              type === 'favourite' ? 'star star-icon' : (type === 'featured' ? 'thumb-tack' : 'retweet')
             } status__prepend-icon`}
           />
         </div>