mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Useless info messages removed
This commit is contained in:
parent
0b423b73ac
commit
3fc3ded750
39 changed files with 47 additions and 90 deletions
|
@ -94,8 +94,6 @@ function message_post(App $a)
|
|||
case -4:
|
||||
notice(DI::l10n()->t('Message collection failure.') . EOL);
|
||||
break;
|
||||
default:
|
||||
info(DI::l10n()->t('Message sent.') . EOL);
|
||||
}
|
||||
|
||||
// fake it to go back to the input form if no recipient listed
|
||||
|
@ -178,17 +176,16 @@ function message_content(App $a)
|
|||
if ($cmd === 'drop') {
|
||||
$message = DBA::selectFirst('mail', ['convid'], ['id' => $a->argv[2], 'uid' => local_user()]);
|
||||
if(!DBA::isResult($message)){
|
||||
info(DI::l10n()->t('Conversation not found.') . EOL);
|
||||
notice(DI::l10n()->t('Conversation not found.') . EOL);
|
||||
DI::baseUrl()->redirect('message');
|
||||
}
|
||||
|
||||
if (DBA::delete('mail', ['id' => $a->argv[2], 'uid' => local_user()])) {
|
||||
info(DI::l10n()->t('Message deleted.') . EOL);
|
||||
if (!DBA::delete('mail', ['id' => $a->argv[2], 'uid' => local_user()])) {
|
||||
notice(DI::l10n()->t('Message was not deleted.') . EOL);
|
||||
}
|
||||
|
||||
$conversation = DBA::selectFirst('mail', ['id'], ['convid' => $message['convid'], 'uid' => local_user()]);
|
||||
if(!DBA::isResult($conversation)){
|
||||
info(DI::l10n()->t('Conversation removed.') . EOL);
|
||||
DI::baseUrl()->redirect('message');
|
||||
}
|
||||
|
||||
|
@ -201,8 +198,8 @@ function message_content(App $a)
|
|||
if (DBA::isResult($r)) {
|
||||
$parent = $r[0]['parent-uri'];
|
||||
|
||||
if (DBA::delete('mail', ['parent-uri' => $parent, 'uid' => local_user()])) {
|
||||
info(DI::l10n()->t('Conversation removed.') . EOL);
|
||||
if (!DBA::delete('mail', ['parent-uri' => $parent, 'uid' => local_user()])) {
|
||||
notice(DI::l10n()->t('Conversation was not removed.') . EOL);
|
||||
}
|
||||
}
|
||||
DI::baseUrl()->redirect('message');
|
||||
|
@ -301,7 +298,7 @@ function message_content(App $a)
|
|||
$r = get_messages(local_user(), $pager->getStart(), $pager->getItemsPerPage());
|
||||
|
||||
if (!DBA::isResult($r)) {
|
||||
info(DI::l10n()->t('No messages.') . EOL);
|
||||
notice(DI::l10n()->t('No messages.') . EOL);
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue