fix(comments): Use the correct object when autocompleting mentions for other apps

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/55645/head
Joas Schilling 2025-10-09 11:06:38 +07:00
parent 48c2dd6279
commit fa17c55588
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
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: [],