summaryrefslogtreecommitdiffstats
path: root/lib/Interfaces/Object/LikeInterface.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-05-25 20:23:57 -0100
committerGitHub <noreply@github.com>2023-05-25 20:23:57 -0100
commitb5d0e55d186450313d7f13285d102e0719f278bc (patch)
treeff780068ef8b63a40eca1b3423073cc70bc18873 /lib/Interfaces/Object/LikeInterface.php
parent81f21690afe2b64b297d326027eefe451468ff24 (diff)
parent3b479e560fe5e67158604253b6c40a5d98413294 (diff)
Merge pull request #1767 from nextcloud/releases/0.6.0v0.6.0
0.6.0
Diffstat (limited to 'lib/Interfaces/Object/LikeInterface.php')
-rw-r--r--lib/Interfaces/Object/LikeInterface.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Interfaces/Object/LikeInterface.php b/lib/Interfaces/Object/LikeInterface.php
index 27039305..4066cb67 100644
--- a/lib/Interfaces/Object/LikeInterface.php
+++ b/lib/Interfaces/Object/LikeInterface.php
@@ -172,9 +172,9 @@ class LikeInterface extends AbstractActivityPubInterface implements IActivityPub
}
private function updateDetails(Stream $post): void {
-// if (!$post->isLocal()) {
-// return;
-// }
+ // if (!$post->isLocal()) {
+ // return;
+ // }
$post->setDetailInt(
'likes', $this->actionsRequest->countActions($post->getId(), Like::TYPE)
@@ -209,7 +209,7 @@ class LikeInterface extends AbstractActivityPubInterface implements IActivityPub
} catch (StreamNotFoundException $e) {
/** @var SocialAppNotification $notification */
$notification = AP::$activityPub->getItemFromType(SocialAppNotification::TYPE);
-// $notification->setDetail('url', '');
+ // $notification->setDetail('url', '');
$notification->setDetailItem('post', $post);
$notification->addDetail('accounts', $author->getAccount());
$notification->setAttributedTo($author->getId())