1
0
Fork 0

Some Renames:

- EMail => EMail
- toEmail => toAddress
- fromEmail => fromAddress
This commit is contained in:
Philipp Holzer 2020-01-26 23:47:16 +01:00
commit 765a0d8892
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
5 changed files with 23 additions and 25 deletions

View file

@ -23,7 +23,7 @@ interface IEmail
*
* @return string
*/
function getFromEmail();
function getFromAddress();
/**
* Gets the UID of the sender of this email
@ -44,7 +44,7 @@ interface IEmail
*
* @return string
*/
function getToEmail();
function getToAddress();
/**
* Gets the subject of this email

View file

@ -7,12 +7,12 @@ use Friendica\App\BaseURL;
use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
use Friendica\Model\Item;
use Friendica\Object\EMail;
use Friendica\Object\Email;
/**
* Class for creating CC emails based on a received item
*/
class ItemCCEMail extends EMail
class ItemCCEMail extends Email
{
public function __construct(App $a, L10n $l10n, BaseURL $baseUrl, array $item, string $toEmail, string $authorThumb)
{
@ -21,7 +21,7 @@ class ItemCCEMail extends EMail
$disclaimer .= $l10n->t('You may visit them online at %s', $baseUrl . '/profile/' . $a->user['nickname']) . EOL;
$disclaimer .= $l10n->t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . EOL;
if (!$item['title'] == '') {
$subject = EMail::encodeHeader($item['title'], 'UTF-8');
$subject = Email::encodeHeader($item['title'], 'UTF-8');
} else {
$subject = Email::encodeHeader('[Friendica]' . ' ' . $l10n->t('%s posted an update.', $a->user['username']), 'UTF-8');
}