From 3b469fe4e9a8197e67533eb7112f665520dfa829 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Feb 2023 08:54:27 +0000 Subject: [PATCH] Fix the spelling of some verbs --- src/Protocol/Activity.php | 12 +++++++++--- update.php | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Protocol/Activity.php b/src/Protocol/Activity.php index aa322f4cf2..36bc5e99b3 100644 --- a/src/Protocol/Activity.php +++ b/src/Protocol/Activity.php @@ -169,15 +169,21 @@ final class Activity * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read * @var string */ - const READ = ActivityNamespace::ACTIVITY2 . 'read'; - + const READ = ActivityNamespace::ACTIVITY2 . 'Read'; + /** + * Indicates that the actor has listened to the object. + * + * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-listen + * @var string + */ + const LISTEN = ActivityNamespace::ACTIVITY2 . 'Listen'; /** * Indicates that the actor has viewed the object. * * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view * @var string */ - const VIEW = ActivityNamespace::ACTIVITY2 . 'view'; + const VIEW = ActivityNamespace::ACTIVITY2 . 'View'; const O_UNFOLLOW = ActivityNamespace::OSTATUS . '/unfollow'; const O_UNFAVOURITE = ActivityNamespace::OSTATUS . '/unfavorite'; diff --git a/update.php b/update.php index d6988c1d9c..15ef8b1dc0 100644 --- a/update.php +++ b/update.php @@ -1291,6 +1291,7 @@ function update_1514() function update_1515() { + DBA::update('verb', ['name' => Activity::READ], ['name' => 'https://www.w3.org/ns/activitystreams#read']); DBA::update('verb', ['name' => Activity::VIEW], ['name' => 'https://joinpeertube.org/view']); return Update::SUCCESS; }