1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Add ability to unfollow a server

This commit is contained in:
Chocobozzz 2017-11-20 11:19:23 +01:00
parent 892211e849
commit 7e9334c34d
No known key found for this signature in database
GPG key ID: 583A612D890159BE
13 changed files with 85 additions and 26 deletions

View file

@ -10,7 +10,7 @@ async function processUndoActivity (activity: ActivityUndo) {
const following = await db.Account.loadByUrl(activityToUndo.object)
const accountFollow = await db.AccountFollow.loadByAccountAndTarget(follower.id, following.id)
if (!accountFollow) throw new Error(`'Unknown account follow (${follower.id} -> ${following.id}.`)
if (!accountFollow) throw new Error(`'Unknown account follow ${follower.id} -> ${following.id}.`)
await accountFollow.destroy()