-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a LocalImageView, so that front ends have the Person struct. #4631
Conversation
This should only be necessary for the admin endpoint |
I'd rather not add two separate media types returned, especially since the front end uses a component that works for both, and uses the same type. @SleeplessOne1917 suggested that I could remove the |
@@ -71,7 +71,7 @@ test("Upload image and delete it", async () => { | |||
|
|||
// The deleteUrl is a combination of the endpoint, delete token, and alias | |||
let firstImage = listMediaRes.images[0]; | |||
let deleteUrl = `${alphaUrl}/pictrs/image/delete/${firstImage.pictrs_delete_token}/${firstImage.pictrs_alias}`; | |||
let deleteUrl = `${alphaUrl}/pictrs/image/delete/${firstImage.local_image.pictrs_delete_token}/${firstImage.local_image.pictrs_alias}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some asserts here to ensure the correct person is returned. Otherwise looks fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K done.
|
The
local_user_id
wasn't enough for lemmy-ui to show the person listing, and link to the uploader.The linked lemmy-ui PR below has a video of how this looks in action.