mirror of
https://github.com/friendica/friendica
synced 2025-05-03 03:04:23 +02:00
Config option to process the "view" activity
This commit is contained in:
parent
08754b2bab
commit
11513519ce
7 changed files with 47 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -559,7 +559,7 @@ class Receiver
|
|||
return true;
|
||||
}
|
||||
|
||||
if ($type == 'as:View') {
|
||||
if (!DI::config()->get('system', 'process_view') && ($type == 'as:View')) {
|
||||
Logger::info('View activities are ignored.', ['signer' => $signer, 'http_signer' => $http_signer]);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue