Store the "EmojiReact" activity

This commit is contained in:
Michael 2022-04-04 16:03:53 +00:00
parent 1475f53e21
commit aa2a32d16f
4 changed files with 36 additions and 8 deletions

View file

@ -176,6 +176,13 @@ final class Activity
const O_UNFOLLOW = ActivityNamespace::OSTATUS . '/unfollow';
const O_UNFAVOURITE = ActivityNamespace::OSTATUS . '/unfavorite';
/**
* React to a post via an emoji
*
* @var string
*/
const EMOJIREACT = ActivityNamespace::LITEPUB . '/emojireact';
/**
* likes (etc.) can apply to other things besides posts. Check if they are post children,
* in which case we handle them specially
@ -183,10 +190,11 @@ final class Activity
* Hidden activities, which doesn't need to be shown
*/
const HIDDEN_ACTIVITIES = [
Activity::LIKE, Activity::DISLIKE,
Activity::ATTEND, Activity::ATTENDNO, Activity::ATTENDMAYBE,
Activity::FOLLOW,
Activity::ANNOUNCE,
self::LIKE, self::DISLIKE,
self::ATTEND, self::ATTENDNO, self::ATTENDMAYBE,
self::FOLLOW,
self::ANNOUNCE,
self::EMOJIREACT,
];
/**