summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-14 17:11:34 -0500
committerEvan Prodromou <evan@status.net>2009-12-14 17:11:34 -0500
commitd22364b35e33982b2f95146f9ac290a3606da28b (patch)
treee180d3d5486966aaf1dc7263f77e469184eff5dd /lib/noticelist.php
parentdf7fc2710c4f070f7fb3fe961dca810a933bc9a7 (diff)
had the order of <status> and <retweeted_status> wrong in api output
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 85e1befcc..3ccb50230 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -601,11 +601,13 @@ class NoticeListItem extends Widget
{
$user = common_current_user();
+ $todel = (empty($this->repeat)) ? $this->notice : $this->repeat;
+
if (!empty($user) &&
- ($this->notice->profile_id == $user->id || $user->hasRight(Right::DELETEOTHERSNOTICE))) {
+ ($todel->profile_id == $user->id || $user->hasRight(Right::DELETEOTHERSNOTICE))) {
$deleteurl = common_local_url('deletenotice',
- array('notice' => $this->notice->id));
+ array('notice' => $todel->id));
$this->out->element('a', array('href' => $deleteurl,
'class' => 'notice_delete',
'title' => _('Delete this notice')), _('Delete'));