]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add repeated attr to Atom notices_info element
authorZach Copley <zach@status.net>
Thu, 3 Jun 2010 22:24:55 +0000 (22:24 +0000)
committerZach Copley <zach@status.net>
Thu, 3 Jun 2010 22:24:55 +0000 (22:24 +0000)
classes/Notice.php

index 3d7d21533b55a8b537cb9f96d165502bd89a04d5..0838ca2a2cb8150e7fafe9a2c95558db6675d62a 100644 (file)
@@ -1252,6 +1252,8 @@ class Notice extends Memcached_DataObject
 
         if (!empty($cur)) {
             $noticeInfoAttr['favorite'] = ($cur->hasFave($this)) ? "true" : "false";
+           $profile = $cur->getProfile();
+           $noticeInfoAttr['repeated'] = ($profile->hasRepeated($this->id)) ? "true" : "false";
         }
 
         if (!empty($this->repeat_of)) {