mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Fix errors in Model namespace
This commit is contained in:
parent
2c801abb06
commit
07e9f0f54a
14 changed files with 11 additions and 64 deletions
|
@ -12,7 +12,7 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Factory\Api\Mastodon\Notification as NotificationFactory;
|
||||
use Friendica\Navigation\Notifications\Entity;
|
||||
use Friendica\Navigation\Notifications\Entity\Notification as EntityNotification;
|
||||
use Friendica\Object\Api\Mastodon\Notification;
|
||||
use Minishlink\WebPush\VAPID;
|
||||
|
||||
|
@ -21,9 +21,6 @@ class Subscription
|
|||
/**
|
||||
* Select a subscription record exists
|
||||
*
|
||||
* @param int $applicationid
|
||||
* @param int $uid
|
||||
* @param array $fields
|
||||
* @return array|bool Array on success, false on failure
|
||||
*/
|
||||
public static function select(int $applicationid, int $uid, array $fields = [])
|
||||
|
@ -120,10 +117,9 @@ class Subscription
|
|||
/**
|
||||
* Prepare push notification
|
||||
*
|
||||
* @param Notification $Notification
|
||||
* @return void
|
||||
*/
|
||||
public static function pushByNotification(Entity\Notification $notification)
|
||||
public static function pushByNotification(EntityNotification $notification)
|
||||
{
|
||||
$type = NotificationFactory::getType($notification);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue