Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nodeinfo 2.1 document (parallel with 2.0). #181

Merged
merged 4 commits into from
Jan 25, 2024

Conversation

andypiper
Copy link
Collaborator

@andypiper andypiper commented Jan 21, 2024

This PR updates Postmarks support for the nodeinfo specification to include additional fields added in nodeinfo 2.1 (repository and project), as well as adding some optional metadata.

As a side-note, I also sent a PR to the nodeinfo repository to add Postmarks as a Fediverse server that implements the specification, as it has for some time now (albeit 2.0 level)

@andypiper andypiper added the enhancement New feature or request label Jan 21, 2024
// implementation of http://nodeinfo.diaspora.software/protocol.html
// implementation of http://nodeinfo.diaspora.software/
// TODO: activeMonth and activeHalfyear should be dynamic, currently static
// TODO: enable override of nodeName and nodeDescription from settings
Copy link
Owner

Choose a reason for hiding this comment

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

this will line up nicely with our eventual switch to storing more of the config in the database and setting everything up on the web on first-time run. I'll try to keep an eye out for that when we get there!

ckolderup
ckolderup previously approved these changes Jan 24, 2024
Copy link
Owner

@ckolderup ckolderup left a comment

Choose a reason for hiding this comment

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

Looks fine! If/when we eventually support a third version, we may want to be a little more clever about building the response in a way that duplicates less code, but I think it's fine to do things this way for the time being.

@andypiper
Copy link
Collaborator Author

andypiper commented Jan 24, 2024

Yeah, agreed on that, it's not the most elegant but does the job for now like, uh, quite a few other areas of the codebase ❤️

@andypiper andypiper requested a review from ckolderup January 24, 2024 21:36
@andypiper andypiper self-assigned this Jan 24, 2024
@ckolderup ckolderup merged commit 58d1ca1 into ckolderup:main Jan 25, 2024
1 check passed
@andypiper andypiper deleted the nodeinfo-2.1 branch January 25, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants