Merge remote-tracking branch 'origin/develop' into account-endorsements

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2022-01-13 20:33:31 +01:00
568 changed files with 3354 additions and 2443 deletions

View File

@@ -1,3 +1,5 @@
import { fromJS } from 'immutable';
import {
getDomain,
acctFull,
@@ -5,7 +7,6 @@ import {
isAdmin,
isModerator,
} from '../accounts';
import { fromJS } from 'immutable';
describe('getDomain', () => {
const account = fromJS({

View File

@@ -1,7 +1,9 @@
import { ConfigDB } from '../config_db';
import config_db from 'soapbox/__fixtures__/config_db.json';
import { fromJS } from 'immutable';
import config_db from 'soapbox/__fixtures__/config_db.json';
import { ConfigDB } from '../config_db';
test('find', () => {
const configs = fromJS(config_db).get('configs');
expect(ConfigDB.find(configs, ':phoenix', ':json_library')).toEqual(fromJS({

View File

@@ -1,3 +1,5 @@
import { fromJS } from 'immutable';
import {
sortEmoji,
mergeEmojiFavourites,
@@ -8,7 +10,6 @@ import {
simulateEmojiReact,
simulateUnEmojiReact,
} from '../emoji_reacts';
import { fromJS } from 'immutable';
const ALLOWED_EMOJI = [
'👍',

View File

@@ -1,8 +1,9 @@
import { Map as ImmutableMap } from 'immutable';
import {
parseVersion,
getFeatures,
} from '../features';
import { Map as ImmutableMap } from 'immutable';
describe('parseVersion', () => {
it('with Pleroma version string', () => {

View File

@@ -1,6 +1,7 @@
import { shouldFilter } from '../timelines';
import { fromJS } from 'immutable';
import { shouldFilter } from '../timelines';
describe('shouldFilter', () => {
it('returns false under normal circumstances', () => {
const columnSettings = fromJS({});

View File

@@ -1,7 +1,8 @@
// @preval
const pkg = require('../../../package.json');
const { execSync } = require('child_process');
const pkg = require('../../../package.json');
const shortRepoName = url => new URL(url).pathname.substring(1);
const trimHash = hash => hash.substring(0, 7);

View File

@@ -1,8 +1,8 @@
// Detect backend features to conditionally render elements
import gte from 'semver/functions/gte';
import lt from 'semver/functions/lt';
import { List as ImmutableList, Map as ImmutableMap } from 'immutable';
import { createSelector } from 'reselect';
import gte from 'semver/functions/gte';
import lt from 'semver/functions/lt';
const any = arr => arr.some(Boolean);

View File

@@ -4,10 +4,10 @@
*/
import { getSoapboxConfig } from'soapbox/actions/soapbox';
import { isPrerendered } from 'soapbox/precheck';
import { isURL } from 'soapbox/utils/auth';
import { getBaseURL as getAccountBaseURL } from 'soapbox/utils/accounts';
import { BACKEND_URL } from 'soapbox/build_config';
import { isPrerendered } from 'soapbox/precheck';
import { getBaseURL as getAccountBaseURL } from 'soapbox/utils/accounts';
import { isURL } from 'soapbox/utils/auth';
export const displayFqn = state => {
const soapbox = getSoapboxConfig(state);

View File

@@ -4,6 +4,7 @@
*/
import { join } from 'path';
import { FE_SUBDIRECTORY } from 'soapbox/build_config';
export const joinPublicPath = (...paths) => {