Skip to content

Commit

Permalink
Merge pull request #1500 from h3poteto/fix/preview_url
Browse files Browse the repository at this point in the history
Fix preview_url in attachment to optional value
  • Loading branch information
h3poteto authored Dec 13, 2022
2 parents 962c8d0 + 1fbaf96 commit fc60131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion megalodon/src/entities/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Entity {
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string
preview_url: string | null
text_url: string | null
meta: object | null
description: string | null
Expand Down
2 changes: 1 addition & 1 deletion megalodon/src/mastodon/entities/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace MastodonEntity {
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string
preview_url: string | null
text_url: string | null
meta: object | null
description: string | null
Expand Down
2 changes: 1 addition & 1 deletion megalodon/src/pleroma/entities/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace PleromaEntity {
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string
preview_url: string | null
text_url: string | null
meta: object | null
description: string | null
Expand Down

0 comments on commit fc60131

Please sign in to comment.