@@ -29,7 +29,7 @@ public function __construct(
29
29
private readonly ActivityPubManager $ activityPubManager ,
30
30
private readonly VoteManager $ voteManager ,
31
31
private readonly MessageBusInterface $ bus ,
32
- private readonly FavouriteManager $ manager ,
32
+ private readonly FavouriteManager $ favouriteManager ,
33
33
private readonly LoggerInterface $ logger ,
34
34
) {
35
35
parent ::__construct ($ this ->entityManager );
@@ -66,7 +66,7 @@ public function doWork(MessageInterface $message): void
66
66
$ actor = $ this ->activityPubManager ->findActorOrCreate ($ message ->payload ['actor ' ]);
67
67
// Check if actor and entity aren't empty
68
68
if (!empty ($ actor ) && !empty ($ entity )) {
69
- $ this ->manager ->toggle ($ actor , $ entity , FavouriteManager::TYPE_LIKE );
69
+ $ $ this ->favouriteManager ->toggle ($ actor , $ entity , FavouriteManager::TYPE_LIKE );
70
70
}
71
71
} elseif ('Undo ' === $ message ->payload ['type ' ]) {
72
72
if ('Like ' === $ message ->payload ['object ' ]['type ' ]) {
@@ -78,7 +78,7 @@ public function doWork(MessageInterface $message): void
78
78
$ actor = $ this ->activityPubManager ->findActorOrCreate ($ message ->payload ['actor ' ]);
79
79
// Check if actor and entity aren't empty
80
80
if (!empty ($ actor ) && !empty ($ entity )) {
81
- $ this ->manager ->toggle ($ actor , $ entity , FavouriteManager::TYPE_UNLIKE );
81
+ $ $ this ->favouriteManager ->toggle ($ actor , $ entity , FavouriteManager::TYPE_UNLIKE );
82
82
$ this ->voteManager ->removeVote ($ entity , $ actor );
83
83
}
84
84
}
0 commit comments