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

added 3 endpoints for external public mentions to work #139

Merged
merged 4 commits into from
Apr 28, 2024

Conversation

seannian
Copy link
Collaborator

i have some print lines - will fix

@GetMapping("/nodeinfo/2.0")
public Mono<NodeInfo2> nodeInfo2Mono() {
return Mono.just(new NodeInfo2("2.0", new Software("mastodon", "4.2.8"), List.of("activitypub"),
new Services(List.of(""), List.of("")), new Usage(new Users(0, 0, 0), 0), true,
Copy link
Contributor

Choose a reason for hiding this comment

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

you should add a // TODO: to grab from account DB

@GetMapping("/.well-known/nodeinfo")
public Mono<NodeInfo> nodeInfoMono() {
return Mono.just(new NodeInfo(
List.of(new Link("http://nodeinfo.diaspora.software/ns/schema/2.0", "https://mas.to/nodeinfo/2.0"))));
Copy link
Contributor

Choose a reason for hiding this comment

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

mas.to -> server name

@seannian seannian merged commit a3a264c into main Apr 28, 2024
1 check passed
@seannian seannian deleted the public-external-status-fix branch April 28, 2024 19:45
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