Fix the spelling of some verbs

This commit is contained in:
Michael 2023-02-20 08:54:27 +00:00
parent 11513519ce
commit 3b469fe4e9
2 changed files with 10 additions and 3 deletions

View file

@ -169,15 +169,21 @@ final class Activity
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read
* @var string * @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. * Indicates that the actor has viewed the object.
* *
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view
* @var string * @var string
*/ */
const VIEW = ActivityNamespace::ACTIVITY2 . 'view'; const VIEW = ActivityNamespace::ACTIVITY2 . 'View';
const O_UNFOLLOW = ActivityNamespace::OSTATUS . '/unfollow'; const O_UNFOLLOW = ActivityNamespace::OSTATUS . '/unfollow';
const O_UNFAVOURITE = ActivityNamespace::OSTATUS . '/unfavorite'; const O_UNFAVOURITE = ActivityNamespace::OSTATUS . '/unfavorite';

View file

@ -1291,6 +1291,7 @@ function update_1514()
function update_1515() 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']); DBA::update('verb', ['name' => Activity::VIEW], ['name' => 'https://joinpeertube.org/view']);
return Update::SUCCESS; return Update::SUCCESS;
} }