]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Poll/Poll_response.php
cleanup... Poll main & response events seem to sorta work over ostatus now
[quix0rs-gnu-social.git] / plugins / Poll / Poll_response.php
index 03dd6f60b552104a91f853d6aa049ea839b44b4a..88e6ea890cb32cfea4b53c75d70b094bd8d5fa88 100644 (file)
@@ -141,6 +141,14 @@ class Poll_response extends Managed_DataObject
         return $this->getNotice()->bestUrl();
     }
 
+    /**
+     *
+     * @return Poll
+     */
+    function getPoll()
+    {
+        return Poll::staticGet('id', $this->poll_id);
+    }
     /**
      * Save a new poll notice
      *