]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Removed deprecated activity:subject
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 8 Oct 2013 13:06:19 +0000 (15:06 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 8 Oct 2013 13:06:19 +0000 (15:06 +0200)
classes/Profile_list.php
classes/User_group.php
lib/atom10feed.php
lib/atomgroupnoticefeed.php
lib/atomlistnoticefeed.php
lib/atomusernoticefeed.php

index b922c92a146ad32260bdedb71c9bbd6742272b78..8cf5d210f823c0012811e2a4c91cc6ebb6452708 100644 (file)
@@ -407,18 +407,6 @@ class Profile_list extends Managed_DataObject
         return $xs->getString();
     }
 
-    /**
-     * return an xml string to represent this people tag
-     * as the subject of an activitystreams feed.
-     *
-     * @return string activitystreams subject
-     */
-
-    function asActivitySubject()
-    {
-        return $this->asActivityNoun('subject');
-    }
-
     /**
      * return an xml string to represent this people tag
      * as a noun in an activitystreams feed.
index 47ca3538e585598427ac2d573903619e75ce19c6..3842826865e99c1cb9db4f2b961c3b5dd1eab483 100644 (file)
@@ -526,19 +526,6 @@ class User_group extends Managed_DataObject
         return $xs->getString();
     }
 
-    /**
-     * Returns an XML string fragment with group information as an
-     * Activity Streams <activity:subject> element.
-     *
-     * Assumes that 'activity' namespace has been previously defined.
-     *
-     * @return string
-     */
-    function asActivitySubject()
-    {
-        return $this->asActivityNoun('subject');
-    }
-
     /**
      * Returns an XML string fragment with group information as an
      * Activity Streams noun object with the given element type.
index 2d617326c5dded37223842255d5a939b2ef82927..0d2e0796da61642e7e876038e285a8e505e7b1c0 100644 (file)
@@ -146,20 +146,6 @@ class Atom10Feed extends XMLStringer
         }
     }
 
-    /**
-     * Deprecated <activity:subject>; ignored
-     *
-     * @param string $xmlSubject An XML string representation of the subject
-     *
-     * @return void
-     */
-
-    function setActivitySubject($xmlSubject)
-    {
-        // TRANS: Server exception thrown when using the method setActivitySubject() in the class Atom10Feed.
-        throw new ServerException(_('Do not use this method!'));
-    }
-
     function getNamespaces()
     {
         return $this->namespaces;
index 817191b64aecee4cfffd40392fa778340688e89b..5b6fcf42952b1e24ee255234b16157907b8cfb07 100644 (file)
@@ -85,23 +85,10 @@ class AtomGroupNoticeFeed extends AtomNoticeFeed
         $this->setId($self);
         $this->setSelfLink($self);
 
-        // For groups, we generate an author _AND_ an <activity:subject>
-        // Versions of StatusNet under 0.9.7 treat <author> as a person
-        // XXX: remove this workaround in future versions
-
         $ao = ActivityObject::fromGroup($group);
 
         $this->addAuthorRaw($ao->asString('author'));
 
-        $depMsg = 'Deprecation warning: activity:subject is present '
-            . 'only for backward compatibility. It will be '
-            . 'removed in the next version of StatusNet.';
-
-        $this->addAuthorRaw(
-            "<!--$depMsg-->\n"
-            . $ao->asString('activity:subject')
-        );
-
         $this->addLink($group->homeUrl());
     }
 
index 601e83294ff1440fb624e49a3c1915cb4eefdb43..f4765d44099b5ac70e88a316b45667abfea2a6ad 100644 (file)
@@ -88,11 +88,9 @@ class AtomListNoticeFeed extends AtomNoticeFeed
         $this->setId($self);
         $this->setSelfLink($self);
 
-        // FIXME: Stop using activity:subject?
         $ao = ActivityObject::fromPeopletag($this->list);
 
-        $this->addAuthorRaw($ao->asString('author').
-                            $ao->asString('activity:subject'));
+        $this->addAuthorRaw($ao->asString('author'));
 
         $this->addLink($this->list->getUri());
     }
index 5180725722d23dff75d5ff2315e1d9f2b3fdfdd9..b899ecff4aa4c15da5173ddf9f40f81b49cc9c72 100644 (file)
@@ -66,22 +66,7 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
 
             array_push($ao->extra, $profile->profileInfo($cur));
 
-            // XXX: For users, we generate an author _AND_ an <activity:subject>
-            // This is for backward compatibility with clients (especially
-            // StatusNet's clients) that assume the Atom will conform to an
-            // older version of the Activity Streams API. Subject should be
-            // removed in future versions of StatusNet.
-
             $this->addAuthorRaw($ao->asString('author'));
-
-            $depMsg = 'Deprecation warning: activity:subject is present '
-                . 'only for backward compatibility. It will be '
-                . 'removed in the next version of StatusNet.';
-
-            $this->addAuthorRaw(
-                "<!--$depMsg-->\n"
-                . $ao->asString('activity:subject')
-            );
         }
 
         // TRANS: Title in atom user notice feed. %s is a user name.