Skip to content

Commit

Permalink
ap: add Misskey extension property that affects past Notes (#255)
Browse files Browse the repository at this point in the history
* ap: `_misskey_makeNotes*Before`

misskey-dev/misskey#14814

* fix ambiguous description
  • Loading branch information
KisaragiEffective authored Oct 25, 2024
1 parent d4c7ae0 commit 72f6ca7
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions content/ns.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,37 @@ Misskey shows the value on notification to new followee when:
- compact IRI: `misskey:_misskey_requireSigninToViewContents`
- canonical IRI: `https://misskey-hub.net/ns#_misskey_requireSigninToViewContents`

This value is used for `Actor` type object to forbid show one's content when viewer is not signed-in.
This property must be either `true` or `false` if existent.
This property is used for `Actor` type object to forbid show one's content when viewer is not signed-in.
This value must be either `true` or `false` if existent.

An implementation should refuse to show their content to align to Misskey's implementation if the value is `true` and the viewer is not signed-in.

This property is not guaranteed to work on older Misskey or non-Misskey implementation.

## `_misskey_makeNotesFollowersOnlyBefore`
(introduced in: https://github.com/misskey-dev/misskey/pull/14814)

- compact IRI: `misskey:_misskey_makeNotesFollowersOnlyBefore`
- canonical IRI: `https://misskey-hub.net/ns#_misskey_makeNotesFollowersOnlyBefore`

This property is used for `Actor` type object to forbid show one's *past* content when viewer is not a follower of author.
This value must be a integer if existent.

Misskey computes that the threshold of the Unix epoch millisecond in the either way:
- If the value is positive, then the value is interpreted as an absolute Unix epoch millisecond.
- If the value is negative, then the value is relative millisecond compared to posted date. For example, `-86400000` implies targeting a note that has posted before yesterday because a day contains 86400 seconds.

If posted date is considered as older than the threshold, then it is considered as a past content.
If the viewer is not a follower of the author, then past content shall not be shown.

This property is not guaranteed to work on older Misskey or non-Misskey implementation.

## `_misskey_makeNotesHiddenBefore`
(introduced in: https://github.com/misskey-dev/misskey/pull/14814)

- compact IRI: `misskey:_misskey_makeNotesHiddenBefore`
- canonical IRI: `https://misskey-hub.net/ns#_misskey_makeNotesHiddenBefore`

This property is used for `Actor` type object. This property has same semantics and value range as `_misskey_makeNotesFollowersOnlyBefore` but affected viewer: the value affects everyone but author themselves.

This property is not guaranteed to work on older Misskey or non-Misskey implementation.

0 comments on commit 72f6ca7

Please sign in to comment.