Fixed issue with status reposts, quote posts not showing group name after the dot
• Fixed: - issue with status reposts, quote posts not showing groups name after the dot
This commit is contained in:
parent
70893b7e4c
commit
e197f2091f
@ -122,7 +122,9 @@ export const makeGetStatus = () => {
|
|||||||
(state) => state,
|
(state) => state,
|
||||||
(state, { id }) => state.getIn(['statuses', id]),
|
(state, { id }) => state.getIn(['statuses', id]),
|
||||||
(state, { id }) => state.getIn(['groups', state.getIn(['statuses', id, 'group'])]),
|
(state, { id }) => state.getIn(['groups', state.getIn(['statuses', id, 'group'])]),
|
||||||
|
(state, { id }) => state.getIn(['groups', state.getIn(['statuses', state.getIn(['statuses', id, 'reblog']), 'group'])]),
|
||||||
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', id, 'quote_of_id'])]),
|
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', id, 'quote_of_id'])]),
|
||||||
|
(state, { id }) => state.getIn(['groups', state.getIn(['statuses', state.getIn(['statuses', id, 'quote_of_id']), 'group'])]),
|
||||||
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', id, 'reblog'])]),
|
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', id, 'reblog'])]),
|
||||||
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', id, 'account'])]),
|
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', id, 'account'])]),
|
||||||
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', state.getIn(['statuses', id, 'quote_of_id']), 'account'])]),
|
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', state.getIn(['statuses', id, 'quote_of_id']), 'account'])]),
|
||||||
@ -131,7 +133,7 @@ export const makeGetStatus = () => {
|
|||||||
getFilters,
|
getFilters,
|
||||||
],
|
],
|
||||||
|
|
||||||
(state, statusBase, group, quotedStatus, statusRepost, accountBase, accountQuoted, accountRepost, username, filters) => {
|
(state, statusBase, group, groupRepost, quotedStatus, quotedStatusGroup, statusRepost, accountBase, accountQuoted, accountRepost, username, filters) => {
|
||||||
if (!statusBase) {
|
if (!statusBase) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
@ -144,6 +146,7 @@ export const makeGetStatus = () => {
|
|||||||
|
|
||||||
if (statusRepost) {
|
if (statusRepost) {
|
||||||
statusRepost = statusRepost.set('account', accountRepost)
|
statusRepost = statusRepost.set('account', accountRepost)
|
||||||
|
if (groupRepost) statusRepost = statusRepost.set('group', groupRepost)
|
||||||
|
|
||||||
//Check if theres a quoted post that
|
//Check if theres a quoted post that
|
||||||
const statusRepostQuoteId = statusRepost.get('quote_of_id')
|
const statusRepostQuoteId = statusRepost.get('quote_of_id')
|
||||||
@ -164,6 +167,7 @@ export const makeGetStatus = () => {
|
|||||||
|
|
||||||
if (quotedStatus) {
|
if (quotedStatus) {
|
||||||
quotedStatus = quotedStatus.set('account', accountQuoted);
|
quotedStatus = quotedStatus.set('account', accountQuoted);
|
||||||
|
if (quotedStatusGroup) quotedStatus = quotedStatus.set('group', quotedStatusGroup)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Find ancestor status
|
//Find ancestor status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user