[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:
Claire
2025-08-25 17:44:18 +02:00
parent 7e25f6b606
commit 0710138578
6 changed files with 88 additions and 3 deletions

View File

@@ -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 : (