aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-04-04 18:54:24 -0700
committerfriendica <info@friendica.com>2013-04-04 18:54:24 -0700
commit989e78137edf1c8d0a85038965fb12e7bffb3e7a (patch)
tree3fe185b3fdd8fe8d42544df869680c38f28128f3 /mod
parent6e17be3e85b710f0197e13051374eb45b675e93c (diff)
downloadvolse-hubzilla-989e78137edf1c8d0a85038965fb12e7bffb3e7a.tar.gz
volse-hubzilla-989e78137edf1c8d0a85038965fb12e7bffb3e7a.tar.bz2
volse-hubzilla-989e78137edf1c8d0a85038965fb12e7bffb3e7a.zip
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.
Diffstat (limited to 'mod')
-rwxr-xr-xmod/like.php2
1 files changed, 2 insertions, 0 deletions
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'],