mirror of
https://github.com/friendica/friendica
synced 2025-04-23 06:30:11 +00:00
Fix ignore notification
This commit is contained in:
parent
82f8794215
commit
dd8d9d7c70
6 changed files with 28 additions and 31 deletions
|
@ -19,6 +19,26 @@ class Notification extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
$request_id = $parameters['id'] ?? false;
|
||||
|
||||
if (DI::args()->get(1) == 'action' && $request_id) {
|
||||
$intro = DI::intro()->selectFirst(['id' => $request_id, 'uid' => local_user()]);
|
||||
|
||||
switch ($_POST['submit']) {
|
||||
case DI::l10n()->t('Discard'):
|
||||
$intro->discard();
|
||||
break;
|
||||
case DI::l10n()->t('Ignore'):
|
||||
$intro->ignore();
|
||||
break;
|
||||
}
|
||||
|
||||
DI::baseUrl()->redirect('notifications/intros');
|
||||
}
|
||||
}
|
||||
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
// @TODO: Replace with parameter from router
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue