Delete follow notification on unfollow

- Fix translation string typo
This commit is contained in:
Hypolite Petovan 2022-03-06 06:36:39 -05:00
parent 49971b1465
commit e6f745bcb1
3 changed files with 16 additions and 2 deletions

View file

@ -195,4 +195,14 @@ class Notification extends BaseRepository
return $Notification;
}
public function deleteForUserByVerb(int $uid, string $verb, array $condition = []): bool
{
$condition['uid'] = $uid;
$condition['vid'] = Verb::getID($verb);
$this->logger->notice('deleteForUserByVerb', ['condition' => $condition]);
return $this->db->delete(self::$table_name, $condition);
}
}