summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-10 14:33:15 -0500
committerEvan Prodromou <evan@status.net>2009-12-10 14:33:15 -0500
commit37b0852fdb8b82741b327af57d898d4d89c2f177 (patch)
tree6970ae393dce07ad9952cb96d4ef8f44fdf81465
parent198e413a58f8aa3d07ce5da365f6c47ce98ab2c0 (diff)
move forward form to plugin
-rw-r--r--lib/noticelist.php21
-rw-r--r--plugins/Repeat/forwardform.php (renamed from lib/forwardform.php)0
2 files changed, 0 insertions, 21 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index d6ffc9ca9..21cec528f 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -212,7 +212,6 @@ class NoticeListItem extends Widget
$this->out->elementStart('div', 'notice-options');
$this->showFaveForm();
$this->showReplyLink();
- $this->showForwardForm();
$this->showDeleteLink();
$this->out->elementEnd('div');
}
@@ -532,26 +531,6 @@ class NoticeListItem extends Widget
}
/**
- * show the form to forward a notice
- *
- * @return void
- */
-
- function showForwardForm()
- {
- $user = common_current_user();
- if ($user && $user->id != $this->notice->profile_id) {
- $profile = $user->getProfile();
- if ($profile->hasForwarded($this->notice->id)) {
- $this->out->text(_('Forwarded'));
- } else {
- $ff = new ForwardForm($this->out, $this->notice);
- $ff->show();
- }
- }
- }
-
- /**
* if the user is the author, let them delete the notice
*
* @return void
diff --git a/lib/forwardform.php b/plugins/Repeat/forwardform.php
index 2052856ae..2052856ae 100644
--- a/lib/forwardform.php
+++ b/plugins/Repeat/forwardform.php