mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Don't show videos of remote instance after unfollow
This commit is contained in:
parent
1174a8479a
commit
f05a1c30c1
38 changed files with 402 additions and 211 deletions
|
@ -10,7 +10,7 @@ import { getOrCreateActorAndServerAndModel } from '../../../lib/activitypub/acto
|
|||
import { sendFollow, sendUndoFollow } from '../../../lib/activitypub/send'
|
||||
import {
|
||||
asyncMiddleware, authenticate, ensureUserHasRight, paginationValidator, removeFollowingValidator, setBodyHostsPort, setDefaultSort,
|
||||
setPagination
|
||||
setDefaultPagination
|
||||
} from '../../../middlewares'
|
||||
import { followersSortValidator, followingSortValidator, followValidator } from '../../../middlewares/validators'
|
||||
import { ActorModel } from '../../../models/activitypub/actor'
|
||||
|
@ -22,7 +22,7 @@ serverFollowsRouter.get('/following',
|
|||
paginationValidator,
|
||||
followingSortValidator,
|
||||
setDefaultSort,
|
||||
setPagination,
|
||||
setDefaultPagination,
|
||||
asyncMiddleware(listFollowing)
|
||||
)
|
||||
|
||||
|
@ -45,7 +45,7 @@ serverFollowsRouter.get('/followers',
|
|||
paginationValidator,
|
||||
followersSortValidator,
|
||||
setDefaultSort,
|
||||
setPagination,
|
||||
setDefaultPagination,
|
||||
asyncMiddleware(listFollowers)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue