MActorId,
MActorUrl,
MCommentId,
+ MLocalVideoViewer,
MVideoId,
MVideoPlaylistElement,
MVideoUrl,
return WEBSERVER.URL + '/admin/abuses/' + abuse.id
}
-function getLocalVideoViewActivityPubUrl (byActor: MActorUrl, video: MVideoId) {
- return byActor.url + '/views/videos/' + video.id + '/' + new Date().toISOString()
+function getLocalVideoViewActivityPubUrl (byActor: MActorUrl, video: MVideoId, viewerIdentifier: string) {
+ return byActor.url + '/views/videos/' + video.id + '/' + viewerIdentifier
+}
+
+function getLocalVideoViewerActivityPubUrl (stats: MLocalVideoViewer) {
+ return WEBSERVER.URL + '/videos/local-viewer/' + stats.uuid
}
function getVideoLikeActivityPubUrlByLocalActor (byActor: MActorUrl, video: MVideoId) {
getLocalVideoCommentsActivityPubUrl,
getLocalVideoLikesActivityPubUrl,
getLocalVideoDislikesActivityPubUrl,
+ getLocalVideoViewerActivityPubUrl,
getAbuseTargetUrl,
checkUrlsSameHost,