Skip to content

Commit

Permalink
fix doc format
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Nov 29, 2024
1 parent eee2948 commit 92be22f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions docs/internals/federation.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ NeoDB instances can be identified from user agent string (`NeoDB/x.x (+https://e

NeoDB add additional fields to `Note` activity:

- `relatedWith` is a list of NeoDB specific activities which are associated with this `Note`. For each activity, `id` and `href` are both unique links to that activity, `withRegardTo` links to the catalog item, `attributedTo` links to the user, `type` is one of:
- `Status`, its `status` can be one of: `complete`, `progress`, `wishlist` and `dropped`
- `Rating`, its `value` is rating grade (int, 1-10), `worst` is always 1, `best` is always 10
- `Comment`, its `content` is comment text
- `Review`, its `name` is review title, `content` is its body, `mediaType` is always `text/markdown` for now
- `Note`, its `content` is note text
- `tag` is used to store list of NeoDB catalog items, which are related with this activity. `type` of NeoDB catalog item can be one of `Edition`, `Movie`, `TVShow`, `TVSeason`, `TVEpisode`, `Album`, `Game`, `Podcast`, `PodcastEpisode`, `Performance`, `PerformanceProduction`; href will be the link to that item.
- `relatedWith` is a list of NeoDB specific activities which are associated with this `Note`. For each activity, `id` and `href` are both unique links to that activity, `withRegardTo` links to the catalog item, `attributedTo` links to the user, `type` is one of:
- `Status`, its `status` can be one of: `complete`, `progress`, `wishlist` and `dropped`
- `Rating`, its `value` is rating grade (int, 1-10), `worst` is always 1, `best` is always 10
- `Comment`, its `content` is comment text
- `Review`, its `name` is review title, `content` is its body, `mediaType` is always `text/markdown` for now
- `Note`, its `content` is note text
- `tag` is used to store list of NeoDB catalog items, which are related with this activity. `type` of NeoDB catalog item can be one of `Edition`, `Movie`, `TVShow`, `TVSeason`, `TVEpisode`, `Album`, `Game`, `Podcast`, `PodcastEpisode`, `Performance`, `PerformanceProduction`; href will be the link to that item.

Example:
```json
Expand Down Expand Up @@ -110,11 +110,11 @@ This is not ideal but a practical manner to pass along additional information be

### Relay

NeoDB instances may share public rating and reviews with a default relay, which is currently `https://relay.neodb.net`. This relay is used to propagate public activities and catalog information between instances.
NeoDB instances may share public rating and reviews with a default relay, which is currently `https://relay.neodb.net`. This relay is used to propagate public activities and catalog information between NeoDB instances.

Owner of instances may choose to turn this off in the admin settings.
Owner of each instance may choose to turn this off in their admin settings.


## ATProto

NeoDB is not a PDS itself currently, but can interact with PDS to import user's social graph, and send status updates. So technically NeoDB does not do full federation in ATProto, but NeoDB will handle some side effect from federation, e.g. when user logging in via ATProto handle, NeoDB will resolve user's DID and store it, and will attempt further operation with the DID, and update user's handle if that's changed.
NeoDB is not a PDS itself currently, but can interact with PDS to import user's social graph, and send status updates. So technically NeoDB does not do full federation in ATProto, but NeoDB will handle some side effect from federation, e.g. when user logging in via ATProto handle, NeoDB will resolve user's DID and store it, and will attempt further operation with the DID, and update user's handle if that's changed, and use the corresponding PDS for that handle; user may still have to login NeoDB again with their Bluesky app password, since the change of PDS may invalidates previous app password.
2 changes: 1 addition & 1 deletion docs/sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ the following sites are supported
| BooksTW 博客來 | Book (Edition) | |
| Discogs | Music (Album) | |
| Douban 豆瓣 | Book (Edition, Work)<br>Music (Album)<br>Movie<br>TV (Show, Season, Episode)<br>Game<br>Performance (Performance, Production) | Yes, upload [doufen](https://doufen.org) archive |
| Goodreads | Book (Edition, Work) | Yes, submit shelf link |
| Goodreads | Book (Edition, Work) | Yes, submit profile or shelf link |
| Google Books | Book (Edition) | |
| IGDB | Game | |
| IMDB | Movie<br>TV (Show, Episode) | |
Expand Down

0 comments on commit 92be22f

Please sign in to comment.