mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
[Glitch] Add quoted_update notification type
Port f3a932d8a1 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { FormattedMessage } from 'react-intl';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
|
||||
import EditIcon from '@/material-icons/400-24px/edit.svg?react';
|
||||
import FormatQuoteIcon from '@/material-icons/400-24px/format_quote.svg?react';
|
||||
import HomeIcon from '@/material-icons/400-24px/home-fill.svg?react';
|
||||
import InsertChartIcon from '@/material-icons/400-24px/insert_chart.svg?react';
|
||||
import PushPinIcon from '@/material-icons/400-24px/push_pin.svg?react';
|
||||
@@ -101,6 +102,14 @@ export default class StatusPrepend extends PureComponent {
|
||||
values={{ name: link }}
|
||||
/>
|
||||
);
|
||||
case 'quoted_update':
|
||||
return (
|
||||
<FormattedMessage
|
||||
id='notification.quoted_update'
|
||||
defaultMessage='{name} edited a post you have quoted'
|
||||
values={{ name: link }}
|
||||
/>
|
||||
);
|
||||
case 'quote':
|
||||
return (
|
||||
<FormattedMessage
|
||||
@@ -142,9 +151,13 @@ export default class StatusPrepend extends PureComponent {
|
||||
iconComponent = HomeIcon;
|
||||
break;
|
||||
case 'update':
|
||||
case 'quoted_update':
|
||||
iconId = 'pencil';
|
||||
iconComponent = EditIcon;
|
||||
break;
|
||||
case 'quote':
|
||||
iconId = 'quote';
|
||||
iconComponent = FormatQuoteIcon;
|
||||
}
|
||||
|
||||
return !type ? null : (
|
||||
|
||||
Reference in New Issue
Block a user