]> git.mxchange.org Git - friendica-addons.git/commitdiff
The "id" field is now filled in the notifications. This is needed for the new condens...
authorMichael Vogel <icarus@dabo.de>
Sun, 26 Apr 2015 12:43:42 +0000 (14:43 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 26 Apr 2015 12:43:42 +0000 (14:43 +0200)
appnet/appnet.php
pumpio/pumpio.php
statusnet/statusnet.php
twitter/twitter.php

index f0bdce6ecc44d6639cfee386f87df14f860e940d..171461de184bd7e02dc5243132b9392cf181cc4a 100644 (file)
@@ -701,6 +701,8 @@ function appnet_fetchstream($a, $uid) {
                $postarray = appnet_createpost($a, $uid, $post, $me, $user, $ownid, true);
 
                $item = item_store($postarray);
+               $postarray["id"] = $item;
+
                logger('appnet_fetchstream: User '.$uid.' posted stream item '.$item);
 
                $lastid = $post["id"];
@@ -763,6 +765,8 @@ function appnet_fetchstream($a, $uid) {
                        $parent_id = $postarray['parent'];
                } elseif (isset($postarray["body"])) {
                        $item = item_store($postarray);
+                       $postarray["id"] = $item;
+
                        $parent_id = 0;
                        logger('appnet_fetchstream: User '.$uid.' posted mention item '.$item);
                } else {
@@ -896,6 +900,8 @@ function appnet_createpost($a, $uid, $post, $me, $user, $ownid, $createuser, $th
                                foreach ($thread AS $tpost) {
                                        $threadpost = appnet_createpost($a, $uid, $tpost, $me, $user, $ownid, false, false);
                                        $item = item_store($threadpost);
+                                       $threadpost["id"] = $item;
+
                                        logger("appnet_createpost: stored post ".$post["id"]." thread ".$post["thread_id"]." in item ".$item, LOGGER_DEBUG);
                                }
                        //}
index 2b8cc6d8b9bdabaab3dbf39a49419770a924d181..dc4a6a420ed376c2b24d94c7ce1c2a17825222bc 100644 (file)
@@ -1250,6 +1250,7 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet
                return false;
 
        $top_item = item_store($postarray);
+       $postarray["id"] = $top_item;
 
        if (($top_item == 0) AND ($post->verb == "update")) {
                $r = q("UPDATE `item` SET `title` = '%s', `body` = '%s' , `changed` = '%s' WHERE `uri` = '%s' AND `uid` = %d",
index f0099d94d39bbcf0da53182382a0a5d6e8a556ec..4a5a95b81724176df1a8c21a3635bcae8e3319c4 100644 (file)
@@ -1422,6 +1422,7 @@ function statusnet_fetchhometimeline($a, $uid) {
                                        continue;
 
                                $item = item_store($postarray);
+                               $postarray["id"] = $item;
 
                                logger('statusnet_fetchhometimeline: User '.$self["nick"].' posted home timeline item '.$item);
 
@@ -1471,6 +1472,7 @@ function statusnet_fetchhometimeline($a, $uid) {
                                        continue;
 
                                        $item = item_store($postarray);
+                                       $postarray["id"] = $item;
 
                                        logger('statusnet_fetchhometimeline: User '.$self["nick"].' posted mention timeline item '.$item);
                                }
@@ -1535,6 +1537,7 @@ function statusnet_complete_conversation($a, $uid, $self, $create_user, $nick, $
 
                        //print_r($postarray);
                        $item = item_store($postarray);
+                       $postarray["id"] = $item;
 
                        logger('statusnet_complete_conversation: User '.$self["nick"].' posted home timeline item '.$item);
 
index d7a5eec50b0cd5c21d8c917e4720e7667b765286..c87f4a01e494e5f24626f17ee04c659a1f4ace78 100644 (file)
@@ -1623,6 +1623,7 @@ function twitter_fetchhometimeline($a, $uid) {
                                continue;
 
                        $item = item_store($postarray);
+                       $postarray["id"] = $item;
 
                        logger('twitter_fetchhometimeline: User '.$self["nick"].' posted home timeline item '.$item);
 
@@ -1666,6 +1667,7 @@ function twitter_fetchhometimeline($a, $uid) {
                                continue;
 
                        $item = item_store($postarray);
+                       $postarray["id"] = $item;
 
                        if (!isset($postarray["parent"]) OR ($postarray["parent"] == 0))
                                $postarray["parent"] = $item;