mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
syntax cleanup
This commit is contained in:
parent
a884973188
commit
816320fef5
7
74.md
7
74.md
|
@ -67,6 +67,7 @@ unserialized JSON structure:
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
|
```
|
||||||
content: Root object for the sorting algorithm configuration.
|
content: Root object for the sorting algorithm configuration.
|
||||||
algorithmName: Name of the sorting algorithm.
|
algorithmName: Name of the sorting algorithm.
|
||||||
version: Version of the sorting algorithm.
|
version: Version of the sorting algorithm.
|
||||||
|
@ -87,11 +88,13 @@ includeReplies: Boolean indicating whether to include replies.
|
||||||
includeMedia: Boolean indicating whether to include posts with media.
|
includeMedia: Boolean indicating whether to include posts with media.
|
||||||
contentSafety: Level of content safety (safe, moderate, any).
|
contentSafety: Level of content safety (safe, moderate, any).
|
||||||
promotedContent: Boolean indicating whether to include promoted content.
|
promotedContent: Boolean indicating whether to include promoted content.
|
||||||
Rationale
|
```
|
||||||
|
|
||||||
|
## Rationale
|
||||||
|
|
||||||
This standardized configuration allows developers and platforms to implement consistent sorting and filtering logic across different social media applications. By using a common format, it becomes easier to integrate and extend sorting algorithms, providing a better user experience.
|
This standardized configuration allows developers and platforms to implement consistent sorting and filtering logic across different social media applications. By using a common format, it becomes easier to integrate and extend sorting algorithms, providing a better user experience.
|
||||||
|
|
||||||
Compatibility
|
## Compatibility
|
||||||
|
|
||||||
This proposal is designed to be backward compatible with existing implementations by providing default values for new configuration fields. Platforms can gradually adopt the new configuration format without disrupting current functionality.
|
This proposal is designed to be backward compatible with existing implementations by providing default values for new configuration fields. Platforms can gradually adopt the new configuration format without disrupting current functionality.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user