summaryrefslogtreecommitdiff
path: root/lib/activitycontext.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-05 16:15:05 -0500
committerEvan Prodromou <evan@status.net>2010-12-05 16:15:05 -0500
commitb28266b3d6e9529c2d39d4411697803028a404e8 (patch)
tree962c2d7b6222afcd5184e169538a8ee1d838cba6 /lib/activitycontext.php
parent043f0ad15265ccc5772be80cf83e4e9da27d8101 (diff)
Convert Notice::asAtomEntry() to use Notice::asActivity() and Activity::asString()
We had two ways to generate an activity entry from a notice; one through Notice::asAtomEntry() and one through Notice::asActivity() and Activity::asString(). The code paths had already diverged somewhat. I took the conditions that were in Notice::asAtomEntry() and made sure they were replicated in the other two functions. Then, I rewrote Notice::asAtomEntry() to use the other two functions instead. This change passes the ActivityGenerationTests unit tests, but there may be some other stuff that's not getting covered.
Diffstat (limited to 'lib/activitycontext.php')
-rw-r--r--lib/activitycontext.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/activitycontext.php b/lib/activitycontext.php
index ff3bc9411..fd0dfe06c 100644
--- a/lib/activitycontext.php
+++ b/lib/activitycontext.php
@@ -39,6 +39,8 @@ class ActivityContext
public $location;
public $attention = array();
public $conversation;
+ public $forwardID; // deprecated, use ActivityVerb::SHARE instead
+ public $forwardUrl; // deprecated, use ActivityVerb::SHARE instead
const THR = 'http://purl.org/syndication/thread/1.0';
const GEORSS = 'http://www.georss.org/georss';