]> git.mxchange.org Git - friendica.git/blobdiff - include/like.php
Merge pull request #3033 from annando/1612-object-type
[friendica.git] / include / like.php
index 5b6d1b9e6e7fbf642b768396fee1fe305dea4232..e997e05d6b0e43601d6924dd1bf23ebec532915c 100644 (file)
@@ -163,7 +163,7 @@ function do_like($item_id, $verb) {
        $post_type = (($item['resource-id']) ? t('photo') : t('status'));
        if($item['object-type'] === ACTIVITY_OBJ_EVENT)
                $post_type = t('event');
-       $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'];