]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
get the subject first if you go to the feed
authorEvan Prodromou <evan@status.net>
Fri, 11 Feb 2011 03:01:24 +0000 (03:01 +0000)
committerEvan Prodromou <evan@status.net>
Fri, 11 Feb 2011 03:01:24 +0000 (03:01 +0000)
lib/activity.php

index 6c21c0bcc990ce397f6e4d7a76eb00a175a06584..17684d897bb608ee16f12ac7bc7320e72b6d2517 100644 (file)
@@ -205,18 +205,19 @@ class Activity
             // the surrounding feed.
             $this->actor = new ActivityObject($authorEl);
 
-        } else if (!empty($feed) && $authorEl = $this->_child($feed, self::AUTHOR,
-                                                              self::ATOM)) {
-
-            // If there's no <atom:author> on the entry, it's safe to assume
-            // the containing feed's authorship info applies.
-            $this->actor = new ActivityObject($authorEl);
         } else if (!empty($feed) &&
                    $subjectEl = $this->_child($feed, self::SUBJECT)) {
 
             // Feed subject is used for things like groups.
             // Should actually possibly not be interpreted as an actor...?
             $this->actor = new ActivityObject($subjectEl);
+
+        } else if (!empty($feed) && $authorEl = $this->_child($feed, self::AUTHOR,
+                                                              self::ATOM)) {
+
+            // If there's no <atom:author> on the entry, it's safe to assume
+            // the containing feed's authorship info applies.
+            $this->actor = new ActivityObject($authorEl);
         }
 
         $contextEl = $this->_child($entry, self::CONTEXT);