From 43f46c1aa29cd26846e468dab441c2759d2c76fe Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 2 Apr 2012 22:08:14 -0400 Subject: [PATCH 1/3] correctly update sites --- .../DomainStatusNetwork/lib/domainstatusnetworkinstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php b/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php index b2e988b5e1..42f7f5ad04 100644 --- a/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php +++ b/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php @@ -117,7 +117,7 @@ class DomainStatusNetworkInstaller extends Installer $this->rootname = $config['ADMIN']; $this->rootpass = $config['ADMINPASS']; - $this->sitehost = $config['DBHOST']; + $this->sitehost = $config['SITEDBHOSTNAME']; $this->sitedb = $config['SITEDB']; $tagstr = $config['TAGS']; From 562ac50e7c8c7e2a396c2bfb3e04a693fd0e0f98 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 2 Apr 2012 22:32:30 -0400 Subject: [PATCH 2/3] add created timestamp --- plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php b/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php index 42f7f5ad04..a30ab110ab 100644 --- a/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php +++ b/plugins/DomainStatusNetwork/lib/domainstatusnetworkinstaller.php @@ -178,6 +178,7 @@ class DomainStatusNetworkInstaller extends Installer $sn->dbpass = $this->password; $sn->dbname = $this->database; $sn->sitename = $this->sitename; + $sn->created = common_sql_now(); $result = $sn->insert(); From 8f7f06e35a1763c3f6715a06999704ecbe4b36b1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 13 Apr 2012 11:28:18 -0400 Subject: [PATCH 3/3] fix bug with sender_id and recipient_id in direct_messages --- lib/apiaction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/apiaction.php b/lib/apiaction.php index 420dd2a7cf..14e21ae4fd 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -958,9 +958,9 @@ class ApiAction extends Action $to_profile = $message->getTo(); $dmsg['id'] = intval($message->id); - $dmsg['sender_id'] = intval($from_profile); + $dmsg['sender_id'] = intval($from_profile->id); $dmsg['text'] = trim($message->content); - $dmsg['recipient_id'] = intval($to_profile); + $dmsg['recipient_id'] = intval($to_profile->id); $dmsg['created_at'] = $this->dateTwitter($message->created); $dmsg['sender_screen_name'] = $from_profile->nickname; $dmsg['recipient_screen_name'] = $to_profile->nickname;