diff options
| author | nullobsi <me@nullob.si> | 2021-05-27 17:38:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-28 09:38:09 +0900 |
| commit | ffb9646ce9c3d2326a3e922e58702674eb65646c (patch) | |
| tree | bb656e32c4b61313faad218578018a7bcc989e05 /src/remote/activitypub/renderer | |
| parent | improve types (diff) | |
| download | misskey-ffb9646ce9c3d2326a3e922e58702674eb65646c.tar.gz misskey-ffb9646ce9c3d2326a3e922e58702674eb65646c.tar.bz2 misskey-ffb9646ce9c3d2326a3e922e58702674eb65646c.zip | |
Add image description support (#7518)
* recieve image descriptions under the name property
* fix other components
* use comment for alt and title
* allow editing of file comment
* allow editing of file comment in note dialog
* federate note comments
* use file instead of this
* backend should accept comment on update
* update now actually accepts comment
* allow multiline descriptions
* image should also have description attached
* Update locales/ja-JP.yml
Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
* Use custom component with side-by-side image
* improve usability on mobile devices
* revert changes
* Update post-form-attaches.vue
* Update drive.file.vue
* Update media-caption.vue
Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/remote/activitypub/renderer')
| -rw-r--r-- | src/remote/activitypub/renderer/document.ts | 3 | ||||
| -rw-r--r-- | src/remote/activitypub/renderer/image.ts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/remote/activitypub/renderer/document.ts b/src/remote/activitypub/renderer/document.ts index 4f6ea8c4ee..f6e9dca45d 100644 --- a/src/remote/activitypub/renderer/document.ts +++ b/src/remote/activitypub/renderer/document.ts @@ -4,5 +4,6 @@ import { DriveFiles } from '../../../models'; export default (file: DriveFile) => ({ type: 'Document', mediaType: file.type, - url: DriveFiles.getPublicUrl(file) + url: DriveFiles.getPublicUrl(file), + name: file.comment, }); diff --git a/src/remote/activitypub/renderer/image.ts b/src/remote/activitypub/renderer/image.ts index ce98f98c62..cbd4fbbe68 100644 --- a/src/remote/activitypub/renderer/image.ts +++ b/src/remote/activitypub/renderer/image.ts @@ -4,5 +4,6 @@ import { DriveFiles } from '../../../models'; export default (file: DriveFile) => ({ type: 'Image', url: DriveFiles.getPublicUrl(file), - sensitive: file.isSensitive + sensitive: file.isSensitive, + name: file.comment }); |