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:
parent
892211e849
commit
7e9334c34d
13 changed files with 85 additions and 26 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue