From 989e78137edf1c8d0a85038965fb12e7bffb3e7a Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 4 Apr 2013 18:54:24 -0700 Subject: 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. --- mod/like.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/like.php') diff --git a/mod/like.php b/mod/like.php index 65073aed7..70add59bd 100755 --- a/mod/like.php +++ b/mod/like.php @@ -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'], -- cgit v1.2.3