Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #113 from JonTheNiceGuy/Issue112

Resolves Issue #112: "Joind.In Integration isn't sending updates to the server."
  • Loading branch information...
commit 5ecb294c0c51c323e717fbc4b52a9529172b71fb 2 parents d907c48 + d061b6a
@JonTheNiceGuy JonTheNiceGuy authored
Showing with 20 additions and 1 deletion.
  1. +20 −1 classes/Plugin/JoindIn/hook_loader.php
View
21 classes/Plugin/JoindIn/hook_loader.php
@@ -25,6 +25,22 @@
class Plugin_JoindIn
{
+ function hook_cronTick()
+ {
+ $arrTalks = Object_Talk::brokerAll();
+ $arrNowNext = Object_Slot::getNowAndNext();
+ $intNow = $arrNowNext[0];
+ foreach ($arrTalks as $objTalk) {
+ if ($objTalk->getKey('intSlotID') <= $intNow
+ && $objTalk->getKey('isLocked') == "1"
+ && $objTalk->getKey('intRoomID') != '-1'
+ && ! strpos($objTalk->getKey('jsonLinks'), 'http://joind.in')
+ ) {
+ $this->hook_fixTalk($objTalk);
+ }
+ }
+ }
+
/**
* This function sends a broadcast when the talk is fixed.
*
@@ -32,7 +48,7 @@ class Plugin_JoindIn
*
* @return void
*/
- function hook_talkFixed($object)
+ function hook_fixTalk($object)
{
$system_state = Object_User::isSystem();
try {
@@ -62,6 +78,9 @@ function hook_talkFixed($object)
foreach ($arrTalk['arrPresenters'] as $arrPresenter) {
$presenters[] = $arrPresenter['strUser'];
}
+ if ($arrTalk['strTalkSummary'] == '') {
+ $arrTalk['strTalkSummary'] = 'A talk.';
+ }
$talk_data = array(
'talk_title' => $arrTalk['strTalk'],
'talk_description' => $arrTalk['strTalkSummary'],
Please sign in to comment.
Something went wrong with that request. Please try again.