sforkowany z mirror/soapbox
Add quotes for pending statuses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>improve-ci
rodzic
0e7f397841
commit
7c790a53eb
|
@ -9,9 +9,10 @@ import DisplayName from 'soapbox/components/display_name';
|
||||||
import RelativeTimestamp from 'soapbox/components/relative_timestamp';
|
import RelativeTimestamp from 'soapbox/components/relative_timestamp';
|
||||||
import StatusContent from 'soapbox/components/status_content';
|
import StatusContent from 'soapbox/components/status_content';
|
||||||
import PlaceholderCard from 'soapbox/features/placeholder/components/placeholder_card';
|
import PlaceholderCard from 'soapbox/features/placeholder/components/placeholder_card';
|
||||||
|
import PlaceholderMediaGallery from 'soapbox/features/placeholder/components/placeholder_media_gallery';
|
||||||
|
import QuotedStatus from 'soapbox/features/status/containers/quoted_status_container';
|
||||||
import { getDomain } from 'soapbox/utils/accounts';
|
import { getDomain } from 'soapbox/utils/accounts';
|
||||||
|
|
||||||
import PlaceholderMediaGallery from '../../placeholder/components/placeholder_media_gallery';
|
|
||||||
import { buildStatus } from '../util/pending_status_builder';
|
import { buildStatus } from '../util/pending_status_builder';
|
||||||
|
|
||||||
import PollPreview from './poll_preview';
|
import PollPreview from './poll_preview';
|
||||||
|
@ -93,6 +94,8 @@ class PendingStatus extends ImmutablePureComponent {
|
||||||
{this.renderMedia()}
|
{this.renderMedia()}
|
||||||
{status.get('poll') && <PollPreview poll={status.get('poll')} />}
|
{status.get('poll') && <PollPreview poll={status.get('poll')} />}
|
||||||
|
|
||||||
|
{status.get('quote') && <QuotedStatus statusId={status.get('quote')} />}
|
||||||
|
|
||||||
{/* TODO */}
|
{/* TODO */}
|
||||||
{/* <PlaceholderActionBar /> */}
|
{/* <PlaceholderActionBar /> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,6 +28,7 @@ export const buildStatus = (state, pendingStatus, idempotencyKey) => {
|
||||||
muted: false,
|
muted: false,
|
||||||
pinned: false,
|
pinned: false,
|
||||||
poll: pendingStatus.get('poll', null),
|
poll: pendingStatus.get('poll', null),
|
||||||
|
quote: pendingStatus.get('quote_id', null),
|
||||||
reblog: null,
|
reblog: null,
|
||||||
reblogged: false,
|
reblogged: false,
|
||||||
reblogs_count: 0,
|
reblogs_count: 0,
|
||||||
|
|
Ładowanie…
Reference in New Issue