Fix pagination for blocks/mutes
This commit is contained in:
12
app/soapbox/utils/quirks.js
Normal file
12
app/soapbox/utils/quirks.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { parseVersion } from './features';
|
||||
|
||||
// For solving bugs between API implementations
|
||||
export const getQuirks = instance => {
|
||||
const v = parseVersion(instance.get('version'));
|
||||
return {
|
||||
invertedPagination: v.software === 'Pleroma',
|
||||
};
|
||||
};
|
||||
|
||||
export const getNextLinkName = getState =>
|
||||
getQuirks(getState().get('instance')).invertedPagination ? 'prev' : 'next';
|
||||
Reference in New Issue
Block a user