1
0
Fork 0

Merge pull request #3033 from annando/1612-object-type

The object type "photo" is deprecated and was replaced by "image"
This commit is contained in:
Tobias Diekershoff 2016-12-20 15:44:07 +01:00 committed by GitHub
commit cc16369b6f
5 changed files with 6 additions and 6 deletions

View file

@ -85,7 +85,7 @@ function subthread_content(&$a) {
$uri = item_new_uri($a->get_hostname(),$owner_uid);
$post_type = (($item['resource-id']) ? t('photo') : t('status'));
$objtype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE );
$objtype = (($item['resource-id']) ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE );
$link = xmlify('<link rel="alternate" type="text/html" href="' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . '" />' . "\n") ;
$body = $item['body'];