diff options
Diffstat (limited to 'server/lib/activitypub/url.ts')
-rw-r--r-- | server/lib/activitypub/url.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index 41ac0f9a8..d98561e33 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts | |||
@@ -21,6 +21,10 @@ function getVideoAbuseActivityPubUrl (videoAbuse: VideoAbuseInstance) { | |||
21 | return CONFIG.WEBSERVER.URL + '/admin/video-abuses/' + videoAbuse.id | 21 | return CONFIG.WEBSERVER.URL + '/admin/video-abuses/' + videoAbuse.id |
22 | } | 22 | } |
23 | 23 | ||
24 | function getVideoViewActivityPubUrl (byAccount: AccountInstance, video: VideoInstance) { | ||
25 | return video.url + '#views/' + byAccount.uuid + '/' + new Date().toISOString() | ||
26 | } | ||
27 | |||
24 | function getAccountFollowActivityPubUrl (accountFollow: AccountFollowInstance) { | 28 | function getAccountFollowActivityPubUrl (accountFollow: AccountFollowInstance) { |
25 | const me = accountFollow.AccountFollower | 29 | const me = accountFollow.AccountFollower |
26 | const following = accountFollow.AccountFollowing | 30 | const following = accountFollow.AccountFollowing |
@@ -56,5 +60,6 @@ export { | |||
56 | getAccountFollowAcceptActivityPubUrl, | 60 | getAccountFollowAcceptActivityPubUrl, |
57 | getAnnounceActivityPubUrl, | 61 | getAnnounceActivityPubUrl, |
58 | getUpdateActivityPubUrl, | 62 | getUpdateActivityPubUrl, |
59 | getUndoActivityPubUrl | 63 | getUndoActivityPubUrl, |
64 | getVideoViewActivityPubUrl | ||
60 | } | 65 | } |