]> git.mxchange.org Git - friendica.git/commitdiff
Fix the spelling of some verbs
authorMichael <heluecht@pirati.ca>
Mon, 20 Feb 2023 08:54:27 +0000 (08:54 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 20 Feb 2023 08:54:27 +0000 (08:54 +0000)
src/Protocol/Activity.php
update.php

index aa322f4cf261a1ebb353461d68561c2c9c800b60..36bc5e99b384008b60eebcc11ca0330d64fadd4c 100644 (file)
@@ -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';
index d6988c1d9ca48faed3e3896b634fcead42b9be4c..15ef8b1dc0194e401ecf8f56f0d7164aa92304d7 100644 (file)
@@ -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;
 }