-function getAccountFollowAcceptActivityPubUrl (accountFollow: AccountFollowInstance) {
- const follower = accountFollow.AccountFollower
- const me = accountFollow.AccountFollowing
+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) {
+ return byActor.url + '/likes/' + video.id
+}
+
+function getVideoDislikeActivityPubUrlByLocalActor (byActor: MActorUrl, video: MVideoId) {
+ return byActor.url + '/dislikes/' + video.id
+}
+
+function getLocalVideoSharesActivityPubUrl (video: MVideoUrl) {
+ return video.url + '/announces'
+}
+
+function getLocalVideoCommentsActivityPubUrl (video: MVideoUrl) {
+ return video.url + '/comments'
+}
+
+function getLocalVideoLikesActivityPubUrl (video: MVideoUrl) {
+ return video.url + '/likes'
+}
+
+function getLocalVideoDislikesActivityPubUrl (video: MVideoUrl) {
+ return video.url + '/dislikes'
+}