mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(comments): Use the correct object when autocompleting mentions for other apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
48c2dd6279
commit
fa17c55588
2 changed files with 3 additions and 3 deletions
|
|
@ -27,6 +27,7 @@ export default defineComponent({
|
|||
key: 'editor',
|
||||
},
|
||||
userData: {},
|
||||
currentResourceId: this.resourceId,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -40,8 +41,8 @@ export default defineComponent({
|
|||
const { data } = await axios.get(generateOcsUrl('core/autocomplete/get'), {
|
||||
params: {
|
||||
search,
|
||||
itemType: 'files',
|
||||
itemId: this.resourceId,
|
||||
itemType: this.resourceType,
|
||||
itemId: this.currentResourceId,
|
||||
sorter: 'commenters|share-recipients',
|
||||
limit: loadState('comments', 'maxAutoCompleteResults'),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ export default {
|
|||
loading: false,
|
||||
done: false,
|
||||
|
||||
currentResourceId: this.resourceId,
|
||||
offset: 0,
|
||||
comments: [],
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue