Skip to content

nostr: align image dimensions handling with NIP specs - #1417

Merged
yukibtc merged 2 commits into
masterfrom
dimensions
Aug 3, 2026
Merged

nostr: align image dimensions handling with NIP specs#1417
yukibtc merged 2 commits into
masterfrom
dimensions

Conversation

@yukibtc

@yukibtc yukibtc commented Aug 3, 2026

Copy link
Copy Markdown
Member

Description

Move ImageDimensions under NIP-specific scope and remove image dimensions from tags where they are not defined by the spec.

Checklist

  • I followed the contribution guidelines
  • I updated the relevant CHANGELOG.md (if applicable)
  • I understand and can explain all code in this PR

yukibtc added 2 commits August 3, 2026 12:18
Neither of those NIPs specifies that image deimensions can be used in the "image" tag.

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
This removes a public module and re-exports the `ImageDimensions` only from the NIPs when it's used.

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
@yukibtc yukibtc added this to the v0.45 milestone Aug 3, 2026
@yukibtc
yukibtc requested a review from TheAwiteb as a code owner August 3, 2026 10:22
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
nostr/src/nips/nip53.rs 40.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@TheAwiteb TheAwiteb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@yukibtc
yukibtc merged commit 4e6b86d into master Aug 3, 2026
42 of 43 checks passed
@yukibtc
yukibtc deleted the dimensions branch August 3, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants