summaryrefslogtreecommitdiff
path: root/plugins/Facebook/facebookaction.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-12-31 22:32:10 +0000
committerZach Copley <zach@status.net>2009-12-31 22:39:01 +0000
commit962eed904c53980c0e037e78daa701974faed9c1 (patch)
tree4a06a9603d19177e253e84edc9bd8ed8e13472e4 /plugins/Facebook/facebookaction.php
parent5621f8583546458c19d2e032fb67bfa9ceb7ccdd (diff)
- Use a stripped down new notice form for FB app because FB canvas apps
can't support image upload via multipart/form-data (and location sharing is iffy). - Deal with new error code 100 from Facebook, which seem to be for inactive accounts.
Diffstat (limited to 'plugins/Facebook/facebookaction.php')
-rw-r--r--plugins/Facebook/facebookaction.php35
1 files changed, 1 insertions, 34 deletions
diff --git a/plugins/Facebook/facebookaction.php b/plugins/Facebook/facebookaction.php
index c25740fb8..6abf31b0b 100644
--- a/plugins/Facebook/facebookaction.php
+++ b/plugins/Facebook/facebookaction.php
@@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
}
require_once INSTALLDIR . '/plugins/Facebook/facebookutil.php';
-require_once INSTALLDIR . '/lib/noticeform.php';
+require_once INSTALLDIR . '/plugins/Facebook/facebooknoticeform.php';
class FacebookAction extends Action
{
@@ -406,39 +406,6 @@ class FacebookAction extends Action
}
-class FacebookNoticeForm extends NoticeForm
-{
-
- var $post_action = null;
-
- /**
- * Constructor
- *
- * @param HTMLOutputter $out output channel
- * @param string $action action to return to, if any
- * @param string $content content to pre-fill
- */
-
- function __construct($out=null, $action=null, $content=null,
- $post_action=null, $user=null)
- {
- parent::__construct($out, $action, $content, $user);
- $this->post_action = $post_action;
- }
-
- /**
- * Action of the form
- *
- * @return string URL of the action
- */
-
- function action()
- {
- return $this->post_action;
- }
-
-}
-
class FacebookNoticeList extends NoticeList
{