diff options
Diffstat (limited to 'server/lib/activitypub/url.ts')
-rw-r--r-- | server/lib/activitypub/url.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index d98561e33..17395a99b 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts | |||
@@ -25,6 +25,14 @@ function getVideoViewActivityPubUrl (byAccount: AccountInstance, video: VideoIns | |||
25 | return video.url + '#views/' + byAccount.uuid + '/' + new Date().toISOString() | 25 | return video.url + '#views/' + byAccount.uuid + '/' + new Date().toISOString() |
26 | } | 26 | } |
27 | 27 | ||
28 | function getVideoLikeActivityPubUrl (byAccount: AccountInstance, video: VideoInstance) { | ||
29 | return byAccount.url + '#likes/' + video.id | ||
30 | } | ||
31 | |||
32 | function getVideoDislikeActivityPubUrl (byAccount: AccountInstance, video: VideoInstance) { | ||
33 | return byAccount.url + '#dislikes/' + video.id | ||
34 | } | ||
35 | |||
28 | function getAccountFollowActivityPubUrl (accountFollow: AccountFollowInstance) { | 36 | function getAccountFollowActivityPubUrl (accountFollow: AccountFollowInstance) { |
29 | const me = accountFollow.AccountFollower | 37 | const me = accountFollow.AccountFollower |
30 | const following = accountFollow.AccountFollowing | 38 | const following = accountFollow.AccountFollowing |
@@ -61,5 +69,7 @@ export { | |||
61 | getAnnounceActivityPubUrl, | 69 | getAnnounceActivityPubUrl, |
62 | getUpdateActivityPubUrl, | 70 | getUpdateActivityPubUrl, |
63 | getUndoActivityPubUrl, | 71 | getUndoActivityPubUrl, |
64 | getVideoViewActivityPubUrl | 72 | getVideoViewActivityPubUrl, |
73 | getVideoLikeActivityPubUrl, | ||
74 | getVideoDislikeActivityPubUrl | ||
65 | } | 75 | } |