+ /**
+ * For initializing members of the class.
+ *
+ * @param array $argarray misc. arguments
+ *
+ * @return boolean true
+ */
+ function prepare($argarray)
+ {
+ StatusNet::setApi(true); // Send smaller error pages
+
+ parent::prepare($argarray);
+ $license = $_POST['omb_listenee_license'];
+ $site_license = common_config('license', 'url');
+ if (!common_compatible_license($license, $site_license)) {
+ $this->clientError(sprintf(_('Listenee stream license ā%1$sā is not '.
+ 'compatible with site license ā%2$sā.'),
+ $license, $site_license));
+ return false;
+ }
+ return true;
+ }
+