Indicate whether collapsed statuses contain gallery media or link preview cards #2323

Closed
xenofem wants to merge 0 commits from gitlab-mr-iid-1056 into develop
Member

Fixes #767

Currently this shows a picture icon for any kind of gallery media, if you'd like I can adjust it to distinguish between images and videos.

Fixes #767 Currently this shows a picture icon for any kind of gallery media, if you'd like I can adjust it to distinguish between images and videos.
Owner

This won't cover all attachments, for example if you have a video that's played on the timeline is not in gallery

This won't cover all attachments, for example if you have a video that's played on the timeline is not in gallery
Author
Member

Thanks for catching that, I'll push a fix!

Thanks for catching that, I'll push a fix!
Owner

i'm not sure if it's needed or the icon should be different because you could post a link that won't generate a card at all

i'm not sure if it's needed or the icon should be different because you could post a link that won't generate a card at all
Author
Member

Hmmm, looking at link-preview.js, the BE isn't supposed to provide preview cards at all for NSFW statuses, but we still make sure to hide any preview card images that show up in NSFW statuses somehow. If we're paranoid enough to add code to handle that case, I feel like we should be consistently paranoid and indicate the presence of a link, and it's not like it hurts anything to do so. If you have suggestions for a better icon I'm all ears.

Hmmm, looking at `link-preview.js`, the BE isn't supposed to provide preview cards at all for NSFW statuses, but we still make sure to hide any preview card images that show up in NSFW statuses somehow. If we're paranoid enough to add code to handle that case, I feel like we should be consistently paranoid and indicate the presence of a link, and it's not like it hurts anything to do so. If you have suggestions for a better icon I'm all ears.
Owner

BE doesn't provide cards at all or just without images?

BE doesn't provide cards at all or just without images?
Owner

I don't think we need to treat previewless links differently in general, it makes no difference if there's one or not. the preview is what we want to indicate since it can have images.

I don't think we need to treat previewless links differently in general, it makes no difference if there's one or not. the preview is what we want to indicate since it can have images.
Author
Member

Yeah, I'm testing status.card which unless I'm very confused should only be truthy if there's a preview card?

Yeah, I'm testing `status.card` which unless I'm very confused should only be truthy if there's a preview card?
Owner

yes you're correct, I'm just saying that we shouldn't worry about previewless links at all anywhere, so this is fine.

yes you're correct, I'm just saying that we shouldn't worry about previewless links at all anywhere, so this is fine.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!2323
No description provided.