Skip to content

Commit fa17c55

Browse files
committed
fix(comments): Use the correct object when autocompleting mentions for other apps
Signed-off-by: Joas Schilling <[email protected]>
1 parent 48c2dd6 commit fa17c55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/comments/src/mixins/CommentView.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineComponent({
2727
key: 'editor',
2828
},
2929
userData: {},
30+
currentResourceId: this.resourceId,
3031
}
3132
},
3233
methods: {
@@ -40,8 +41,8 @@ export default defineComponent({
4041
const { data } = await axios.get(generateOcsUrl('core/autocomplete/get'), {
4142
params: {
4243
search,
43-
itemType: 'files',
44-
itemId: this.resourceId,
44+
itemType: this.resourceType,
45+
itemId: this.currentResourceId,
4546
sorter: 'commenters|share-recipients',
4647
limit: loadState('comments', 'maxAutoCompleteResults'),
4748
},

apps/comments/src/views/Comments.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export default {
110110
loading: false,
111111
done: false,
112112
113-
currentResourceId: this.resourceId,
114113
offset: 0,
115114
comments: [],
116115

0 commit comments

Comments
 (0)