X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FActivity.php;h=e75b1cf507213b00919be6f7560f5a30453da15f;hb=065d73f860e40e5e3c0646a39edd30997d34f72e;hp=bea2dedb096c5675e06b3c9b5a5864da2f476ca0;hpb=bfbce16d0bd795cb7d48a98c05fd930058445f10;p=friendica.git diff --git a/src/Protocol/Activity.php b/src/Protocol/Activity.php index bea2dedb09..e75b1cf507 100644 --- a/src/Protocol/Activity.php +++ b/src/Protocol/Activity.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Protocol; @@ -157,6 +176,20 @@ 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'; + + /** + * 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 @@ -164,10 +197,12 @@ 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, + self::VIEW, ]; /**