1
0
Fork 0

Rename notify classes according the feature name, not the table name

This commit is contained in:
Hypolite Petovan 2021-01-23 04:53:44 -05:00
commit 82e094179c
25 changed files with 120 additions and 131 deletions

View file

@ -24,7 +24,7 @@ namespace Friendica\Object\Api\Friendica;
use Friendica\BaseEntity;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Model\Notify;
use Friendica\Model\Notification as NotificationModel;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
@ -78,7 +78,7 @@ class Notification extends BaseEntity
/** @var string Message (Plaintext) */
protected $msg_plain;
public function __construct(Notify $notify)
public function __construct(NotificationModel $notify)
{
// map each notify attribute to the entity
foreach ($notify->toArray() as $key => $value) {