Merge branch 'familiar-followers' into 'develop'
Fix features.ts See merge request soapbox-pub/soapbox!2601
This commit is contained in:
commit
0ba4a63106
2 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@ interface UseImageFieldOpts {
|
||||||
function useImageField(opts: UseImageFieldOpts = {}) {
|
function useImageField(opts: UseImageFieldOpts = {}) {
|
||||||
const [file, setFile] = useState<File | null>();
|
const [file, setFile] = useState<File | null>();
|
||||||
const src = usePreview(file) || (file === null ? undefined : opts.preview);
|
const src = usePreview(file) || (file === null ? undefined : opts.preview);
|
||||||
console.log(file, src);
|
|
||||||
|
|
||||||
const onChange: React.ChangeEventHandler<HTMLInputElement> = async ({ target: { files } }) => {
|
const onChange: React.ChangeEventHandler<HTMLInputElement> = async ({ target: { files } }) => {
|
||||||
const file = files?.item(0);
|
const file = files?.item(0);
|
||||||
|
|
|
@ -471,7 +471,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
*/
|
*/
|
||||||
familiarFollowers: any([
|
familiarFollowers: any([
|
||||||
v.software === MASTODON && gte(v.version, '3.5.0'),
|
v.software === MASTODON && gte(v.version, '3.5.0'),
|
||||||
v.software === PLEROMA && gte(v.version, '2.5.52') && v.build === REBASED,
|
v.software === PLEROMA && gte(v.version, '2.5.51') && v.build === REBASED,
|
||||||
v.software === TAKAHE,
|
v.software === TAKAHE,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue