mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
[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:
@@ -45,10 +45,6 @@ export default class StatusPrepend extends PureComponent {
|
|||||||
</Permalink>
|
</Permalink>
|
||||||
);
|
);
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'featured':
|
|
||||||
return (
|
|
||||||
<FormattedMessage id='status.pinned' defaultMessage='Pinned post' />
|
|
||||||
);
|
|
||||||
case 'reblogged_by':
|
case 'reblogged_by':
|
||||||
return (
|
return (
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
|||||||
@@ -46,10 +46,7 @@ const makeMapStateToProps = () => {
|
|||||||
let account = undefined;
|
let account = undefined;
|
||||||
let prepend = undefined;
|
let prepend = undefined;
|
||||||
|
|
||||||
if (props.featured && status) {
|
if (reblogStatus !== null && typeof reblogStatus === 'object') {
|
||||||
account = status.get('account');
|
|
||||||
prepend = 'featured';
|
|
||||||
} else if (reblogStatus !== null && typeof reblogStatus === 'object') {
|
|
||||||
account = status.get('account');
|
account = status.get('account');
|
||||||
status = reblogStatus;
|
status = reblogStatus;
|
||||||
prepend = 'reblogged_by';
|
prepend = 'reblogged_by';
|
||||||
|
|||||||
Reference in New Issue
Block a user