]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - shared/extra-utils/videos/videos.ts
Block comments from muted accounts/servers
authorChocobozzz <me@florianbigard.com>
Fri, 22 May 2020 15:06:26 +0000 (17:06 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 29 May 2020 07:32:20 +0000 (09:32 +0200)
commit696d83fd1377486dd03cc1bd02a21d9b6ddd9fcd
treee1b88451c4357add80721f530993e2b48d197feb
parent72c33e716fecd1826dcf645957f8669821f91ff3
Block comments from muted accounts/servers

Add better control for users of comments displayed on their videos:

 * Do not forward comments from muted remote accounts/servers (muted by the current server or by the video owner)
 * Do not list threads and hide replies (with their children) of accounts/servers muted by the video owner
 * Hide from RSS comments of muted accounts/servers by video owners

Use case:
  * Try to limit spam propagation in the federation
  * Add ability for users to automatically hide comments on their videos from undesirable accounts/servers (the comment section belongs to videomakers, so they choose what's posted there)
14 files changed:
server/controllers/activitypub/client.ts
server/controllers/api/videos/comment.ts
server/lib/activitypub/process/process-create.ts
server/lib/blocklist.ts
server/lib/notifier.ts
server/models/account/account.ts
server/models/utils.ts
server/models/video/video-abuse.ts
server/models/video/video-comment.ts
server/tests/api/users/blocklist.ts
server/tests/api/videos/multiple-servers.ts
server/tests/feeds/feeds.ts
shared/extra-utils/videos/video-comments.ts
shared/extra-utils/videos/videos.ts