]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/tagprofile.php
Merge request #59 which was directed at master
[quix0rs-gnu-social.git] / actions / tagprofile.php
index 47a66d0be47b718832f99142e3f007bc27f70708..871d0e30b09012f1b809cf9e68829ef52a5dafc2 100644 (file)
@@ -65,6 +65,15 @@ class TagprofileAction extends FormAction
         return sprintf(_m('ADDTOLIST','List %s'), $this->target->getNickname());
     }
 
+    function showPage()
+    {
+        // Only serve page content if we aren't POSTing via ajax
+        // otherwise, we serve XML content from doPost()
+        if (!$this->isPost() || !$this->boolean('ajax')) {
+            parent::showPage();
+        }
+    }
+
     function showContent()
     {
         $this->elementStart('div', 'entity_profile h-card');