mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add ability to forbid followers
This commit is contained in:
parent
594d0c6a7c
commit
5b9c965d5a
19 changed files with 196 additions and 55 deletions
|
@ -74,11 +74,8 @@ function getVideoDislikesActivityPubUrl (video: VideoModel) {
|
|||
return video.url + '/dislikes'
|
||||
}
|
||||
|
||||
function getActorFollowActivityPubUrl (actorFollow: ActorFollowModel) {
|
||||
const me = actorFollow.ActorFollower
|
||||
const following = actorFollow.ActorFollowing
|
||||
|
||||
return me.url + '/follows/' + following.id
|
||||
function getActorFollowActivityPubUrl (follower: ActorModel, following: ActorModel) {
|
||||
return follower.url + '/follows/' + following.id
|
||||
}
|
||||
|
||||
function getActorFollowAcceptActivityPubUrl (actorFollow: ActorFollowModel) {
|
||||
|
@ -88,6 +85,10 @@ function getActorFollowAcceptActivityPubUrl (actorFollow: ActorFollowModel) {
|
|||
return follower.url + '/accepts/follows/' + me.id
|
||||
}
|
||||
|
||||
function getActorFollowRejectActivityPubUrl (follower: ActorModel, following: ActorModel) {
|
||||
return follower.url + '/rejects/follows/' + following.id
|
||||
}
|
||||
|
||||
function getVideoAnnounceActivityPubUrl (byActor: ActorModel, video: VideoModel) {
|
||||
return video.url + '/announces/' + byActor.id
|
||||
}
|
||||
|
@ -120,6 +121,7 @@ export {
|
|||
getVideoViewActivityPubUrl,
|
||||
getVideoLikeActivityPubUrl,
|
||||
getVideoDislikeActivityPubUrl,
|
||||
getActorFollowRejectActivityPubUrl,
|
||||
getVideoCommentActivityPubUrl,
|
||||
getDeleteActivityPubUrl,
|
||||
getVideoSharesActivityPubUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue