mirror of
https://github.com/friendica/friendica
synced 2025-04-27 06:30:12 +00:00
Delete follow notification on unfollow
- Fix translation string typo
This commit is contained in:
parent
49971b1465
commit
e6f745bcb1
3 changed files with 16 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue