Config option to process the "view" activity

This commit is contained in:
Michael 2023-02-20 06:41:28 +00:00
parent 08754b2bab
commit 11513519ce
7 changed files with 47 additions and 10 deletions

View file

@ -171,6 +171,14 @@ final class Activity
*/
const READ = ActivityNamespace::ACTIVITY2 . 'read';
/**
* 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 O_UNFOLLOW = ActivityNamespace::OSTATUS . '/unfollow';
const O_UNFAVOURITE = ActivityNamespace::OSTATUS . '/unfavorite';
@ -181,13 +189,6 @@ final class Activity
*/
const EMOJIREACT = ActivityNamespace::LITEPUB . '/emojireact';
/**
* View notification from Peertube
*
* @var string
*/
const VIEW = ActivityNamespace::PEERTUBE . '/view';
/**
* likes (etc.) can apply to other things besides posts. Check if they are post children,
* in which case we handle them specially