mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
So all this while been using the wrong API for autocomplete mentions
🫣🫣🫣
This commit is contained in:
parent
0403fc35f4
commit
173cad2275
1 changed files with 9 additions and 1 deletions
|
@ -931,6 +931,14 @@ function Compose({
|
|||
}}
|
||||
maxCharacters={maxCharacters}
|
||||
performSearch={(params) => {
|
||||
const { type, q, limit } = params;
|
||||
if (type === 'accounts') {
|
||||
return masto.v1.accounts.search({
|
||||
q,
|
||||
limit,
|
||||
resolve: false,
|
||||
});
|
||||
}
|
||||
return masto.v2.search(params);
|
||||
}}
|
||||
/>
|
||||
|
@ -1269,7 +1277,7 @@ const Textarea = forwardRef((props, ref) => {
|
|||
return;
|
||||
}
|
||||
console.log({ value, type, v: value[type] });
|
||||
const results = value[type];
|
||||
const results = value[type] || value;
|
||||
console.log('RESULTS', value, results);
|
||||
let html = '';
|
||||
results.forEach((result) => {
|
||||
|
|
Loading…
Reference in a new issue