wrapper function to create arbitrary activities (e.g. for plugins and apps) with a minimal amount of fuss, though the amount of fuss could increase significantly depending on the nature of the activity. For a simple wall post, just set the $arr['body'] to the desired text and we'll do the rest. If the activity requires special verbs, objects or targets, these will all need to be constructed.

This commit is contained in:
friendica
2013-04-04 18:54:24 -07:00
parent 6e17be3e85
commit 989e78137e
3 changed files with 68 additions and 1 deletions

View File

@@ -114,6 +114,8 @@ function like_content(&$a) {
'link' => $links,
'title' => $item['title'],
'content' => $item['body'],
'created' => $item['created'],
'edited' => $item['edited'],
'author' => array(
'name' => $item_author['xchan_name'],
'address' => $item_author['xchan_addr'],