use event's title on image name in case is not filled

This commit is contained in:
lesion
2021-11-11 16:55:33 +01:00
parent 8fc0da7474
commit e8fe68be30

View File

@@ -87,7 +87,7 @@ Event.prototype.toAP = function (username, locale, to = []) {
type: 'Document',
mediaType: 'image/jpeg',
url: `${config.baseurl}/media/${this.media[0].url}`,
name: this.media[0].name || '',
name: this.media[0].name || this.title || '',
blurHash: null,
focalPoint: this.media[0].focalPoint || [0, 0]
})