[Glitch] Change "Pin on profile" to "Feature on profile" for posts in web UI

Port 49b6a49c76 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko
2025-04-25 17:11:59 +02:00
committed by Claire
parent 3ec3814f8e
commit 1c71abc5de
2 changed files with 1 additions and 8 deletions

View File

@@ -45,10 +45,6 @@ export default class StatusPrepend extends PureComponent {
</Permalink>
);
switch (type) {
case 'featured':
return (
<FormattedMessage id='status.pinned' defaultMessage='Pinned post' />
);
case 'reblogged_by':
return (
<FormattedMessage

View File

@@ -46,10 +46,7 @@ const makeMapStateToProps = () => {
let account = undefined;
let prepend = undefined;
if (props.featured && status) {
account = status.get('account');
prepend = 'featured';
} else if (reblogStatus !== null && typeof reblogStatus === 'object') {
if (reblogStatus !== null && typeof reblogStatus === 'object') {
account = status.get('account');
status = reblogStatus;
prepend = 'reblogged_by';