mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
old boot.php functions replaced in various places
This commit is contained in:
parent
c54bfd423a
commit
11944dda32
20 changed files with 183 additions and 105 deletions
|
@ -23,6 +23,7 @@ namespace Friendica\Navigation\Notifications\Factory;
|
|||
|
||||
use Friendica\BaseFactory;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Navigation\Notifications\Entity;
|
||||
use Friendica\Navigation\Notifications\Exception\NoMessageException;
|
||||
|
@ -71,7 +72,7 @@ class FormattedNavNotification extends BaseFactory
|
|||
*/
|
||||
public function createFromParams(array $contact, string $message, \DateTime $date, Uri $href, bool $seen = false): ValueObject\FormattedNavNotification
|
||||
{
|
||||
$contact['photo'] = Contact::getAvatarUrlForUrl($contact['url'], local_user(), Proxy::SIZE_MICRO);
|
||||
$contact['photo'] = Contact::getAvatarUrlForUrl($contact['url'], Session::getLocalUser(), Proxy::SIZE_MICRO);
|
||||
|
||||
$dateMySQL = $date->format(DateTimeFormat::MYSQL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue