We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit edee1fc0 authored by Evan Prodromou's avatar Evan Prodromou

ignore unrecognized object types

parent fcb614d0
......@@ -442,6 +442,17 @@ class Ostatus_profile extends Memcached_DataObject
$activity = new Activity($entry, $feed);
switch ($activity->object->type) {
case ActivityObject::ARTICLE:
case ActivityObject::BLOGENTRY:
case ActivityObject::NOTE:
case ActivityObject::STATUS:
case ActivityObject::COMMENT:
throw new ClientException("Can't handle that kind of post.");
if ($activity->verb == ActivityVerb::POST) {
$this->processPost($activity, $source);
} else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment