richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

User should able to mention themself

Open Rash419 opened this issue 1 year ago • 3 comments

Describe the bug The autocomplete list the COOL gets from richdocuments doesn't have username of user typing the mention. Therefore, they can't mention themselves

To Reproduce Try to mention yourself in the document

Expected behavior User should able to mention themself

Rash419 avatar Oct 30 '24 13:10 Rash419

@elzody Maybe a quick one to fix if you are working in that area anyways right now?

juliusknorr avatar Dec 03 '24 07:12 juliusknorr

I've discovered that the currently logged-in user is removed from the search results from the autocomplete API, unless you specifically search for the entire UID. For example, if logged-in as user Jane, and you hit the autocomplete API with jan, you will receive nothing. But, if you search for the entire name jane you will get Jane's user. But, if logged-in as another user, say Bob, he can search for jan just fine and receive jane as a result.

Not sure how to bypass this, but for now, entering your entire username should work.

elzody avatar Feb 03 '25 22:02 elzody

In tables we just manually add the current user as a workaround. Should be a quick fix for richdocuments as well with that:

https://github.com/nextcloud/tables/pull/1756

juliusknorr avatar Jun 04 '25 14:06 juliusknorr