An API to fetch user by their URI/URL
Similar to how we can find a user by their full handle, i.e. api/v1/accounts/lain@lain.com
would be cool to be able to find user by their url to be able to recognize mentions.
See this post for instance: https://shigusegubu.club/notice/A8XglVEkPoJs62h7Fw it has a "mention" in the beginning, it even has class mention
, but the status object for it doesn't even have attentions
, if we want to figure out what user is in this non-notifying mention we need to search for them relying solely on the data provided in the link. Currently in pleroma-fe!1392 (merged) I try to figure out user handle from link domain and contents of the link but it's not as reliable, however backend should probably know about user's URLs and URIs, so it should be possible to find user by those, it would ease up finding users in mentions tremendously.