Merge commit 'bcb47b814dfeb53a9bee78b7cb4e424b0f83fb6d' into glitch-soc/merge-upstream
This commit is contained in:
commit
ea1b35d121
76 files changed
+1673
-623
No files matched your search
@@ -99,7 +99,7 @@
|
||||
margin: 12px 16px;
|
||||
padding: 8px;
|
||||
transition: border-color 0.2s ease-in-out;
|
||||
width: calc(100% - 48px);
|
||||
width: calc(100% - 32px);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
|
||||
@@ -109,7 +109,7 @@ export const EmbeddedStatus: React.FC<{ statusId: string }> = ({
|
||||
</div>
|
||||
|
||||
<ContentWarning
|
||||
status={status}
|
||||
statusId={status.get('id') as string}
|
||||
onClick={handleContentWarningClick}
|
||||
expanded={expanded}
|
||||
/>
|
||||
|
||||
@@ -170,7 +170,7 @@ export const Footer: React.FC<{
|
||||
counter={status.get('replies_count') as number}
|
||||
/>
|
||||
|
||||
<BoostButton counters status={status} />
|
||||
<BoostButton counters statusId={statusId} />
|
||||
|
||||
<IconButton
|
||||
className='status__action-bar-button star-icon'
|
||||
|
||||
@@ -21,7 +21,8 @@ import { IconButton } from '../../../components/icon_button';
|
||||
import { Dropdown } from 'mastodon/components/dropdown_menu';
|
||||
import { me, quickBoosting } from '../../../initial_state';
|
||||
import { BoostButton } from '@/mastodon/components/status/boost_button';
|
||||
import { quoteItemState, selectStatusState } from '@/mastodon/components/status/boost_button_utils';
|
||||
import { quoteItemState } from '@/mastodon/components/status/boost_button_utils';
|
||||
import { selectStatusConditions } from '@/mastodon/selectors/statuses';
|
||||
|
||||
const messages = defineMessages({
|
||||
delete: { id: 'status.delete', defaultMessage: 'Delete' },
|
||||
@@ -62,7 +63,7 @@ const mapStateToProps = (state, { status }) => {
|
||||
return ({
|
||||
relationship: state.getIn(['relationships', status.getIn(['account', 'id'])]),
|
||||
quotedAccountId: quotedStatusId ? state.getIn(['statuses', quotedStatusId, 'account']) : null,
|
||||
statusQuoteState: selectStatusState(state, status),
|
||||
statusQuoteState: selectStatusConditions(state, status.get('id')),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -330,7 +331,7 @@ class ActionBar extends PureComponent {
|
||||
<div className='detailed-status__action-bar'>
|
||||
<div className='detailed-status__button'><IconButton title={intl.formatMessage(messages.reply)} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} iconComponent={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? ReplyIcon : replyIconComponent} onClick={this.handleReplyClick} /></div>
|
||||
<div className='detailed-status__button'>
|
||||
<BoostButton status={status} />
|
||||
<BoostButton statusId={status.get('id')} />
|
||||
</div>
|
||||
<div className='detailed-status__button'><IconButton className='star-icon' animate active={status.get('favourited')} title={favouriteTitle} icon='star' iconComponent={status.get('favourited') ? StarIcon : StarBorderIcon} onClick={this.handleFavouriteClick} /></div>
|
||||
<div className='detailed-status__button'><IconButton className='bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={bookmarkTitle} icon='bookmark' iconComponent={status.get('bookmarked') ? BookmarkIcon : BookmarkBorderIcon} onClick={this.handleBookmarkClick} /></div>
|
||||
|
||||
@@ -471,7 +471,7 @@ export const DetailedStatus: React.FC<{
|
||||
|
||||
{(!matchedFilters || showDespiteFilter) && (
|
||||
<ContentWarning
|
||||
status={status}
|
||||
statusId={status.get('id')}
|
||||
expanded={expanded}
|
||||
onClick={handleExpandedToggle}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user