renderer/Document: default to filename if file has no comment #74
Loading…
Reference in a new issue
No description provided.
Delete branch "helene/FoundKey:fix/ap-attachment-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Filenames will now be used if the DriveFile instance of the attachment has no comment set (which seems to be most cases).
As far as I can see the
name
property is not mandatory so I'd like to know why we should ensure it has a value in the first place.Secondly it is my understanding that the
name
field is used for image descriptions here. A file name like2021-10-05 10-04-43 1.png
(like files will be named by default) is absolutely not an image description.Neither is the
comment
property, as FoundKey/Misskey will almost always send out Notes with this field set tonull
.Usage of the
name
field as an image description field is abusive and I will submit changes in Pleroma to support thesummary
field; but that is besides the point. Usage of thename
field for image/video descriptions only work for such content types. When sending files that are not images or videos, like PDF files, not setting this field seems counter-intuitive and will result in unnamed files, which I would believe is unexpected behavior. I believe it might be better to have a filename than nothing in any case.I don't understand why this is relevant here or makes it necessary for
name
to always be set in the first place.The combination of these two does not make sense to me. If you say that
name
should not be used for image descriptions why are you still using it for them? Mixing the use of thename
field makes it even worse in my opinion. If there is aname
and asummary
field, the recipient could at least be somewhat sure which is which.Of course note that if refactoring that, the code for receiving would also have to be adjusted. It would also mean loosing compatibility with Misskey with regard to federating image descriptions.
Pull request closed