Compare against non-post-verb instead of activity object type

This commit is contained in:
Mikael Nordfeldth 2016-01-05 12:48:46 +01:00
parent 416147dd81
commit bd0e6ee357

View File

@ -772,8 +772,8 @@ class QvitterPlugin extends Plugin {
}
}
// don't add notifications for activity type notices
if($notice->source == 'activity' || $notice->object_type == 'activity' || $notice->object_type == 'http://activitystrea.ms/schema/1.0/activity') {
// don't add notifications for activity/non-post-verb notices
if($notice->source == 'activity' || !ActivityUtils::compareVerbs($notice->verb, array(ActivityVerb::POST))) {
return true;
}