diff options
author | ThibG <thib@sitedethib.com> | 2019-12-01 17:25:29 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-12-07 15:48:26 +0100 |
commit | 1e1293e3c841e156413434078d403ceecc4f70c4 (patch) | |
tree | 6d07f5bcaebfc9c9135dc2451eb9df8ab2b4fffa /app/javascript/flavours/glitch/features/notifications/components/notification.js | |
parent | 176f1da267116a792e352f469b87f75c18559af6 (diff) |
[Glitch] Add follow_request notification type
Port 911cc144815babf83ddf99f2daa3682021d401b8 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/notifications/components/notification.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/notifications/components/notification.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/notifications/components/notification.js b/app/javascript/flavours/glitch/features/notifications/components/notification.js index 5c5bbf604..62fc28386 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/notification.js +++ b/app/javascript/flavours/glitch/features/notifications/components/notification.js @@ -7,6 +7,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; // Our imports, import StatusContainer from 'flavours/glitch/containers/status_container'; import NotificationFollow from './follow'; +import NotificationFollowRequestContainer from '../containers/follow_request_container'; export default class Notification extends ImmutablePureComponent { @@ -47,6 +48,18 @@ export default class Notification extends ImmutablePureComponent { onMention={onMention} /> ); + case 'follow_request': + return ( + <NotificationFollowRequestContainer + hidden={hidden} + id={notification.get('id')} + account={notification.get('account')} + notification={notification} + onMoveDown={onMoveDown} + onMoveUp={onMoveUp} + onMention={onMention} + /> + ); case 'mention': return ( <StatusContainer |