LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.28k stars 884 forks source link

Add the ability to fetch a registration application by person_id. #4913

Closed dessalines closed 3 months ago

dessalines commented 3 months ago
dullbananas commented 3 months ago

I think it would be completely better to add it as a field in LocalUserView that's Some if the application exists and the viewer is an admin

dessalines commented 3 months ago

That was my first inclination, but I looked at the front end, and we never return other peoples LocalUserView, or have that available.

Your LocalUserView only ever comes back for you as getsite.my_person, and viewing other people's profiles is always PersonView.

And doing a join there probably isn't the best, since it's admin only anyway.

I believe since this action is a modding-type action, it should work on-demand, similarly to getting reports for that user when you view a comment of theirs.

ie you see this as an option on a drowdown mod actions for a comment or post.