X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPoll%2Fclasses%2FPoll_response.php;h=78aec7ea0513c5818c6c0b570522edd1464a7805;hb=b9a4053eecd1ecfb929219fc14136e4a2076a3b5;hp=21b390db803febdfc8ebef6e506a7ba2ad71322c;hpb=220b51d8be61e9bd316567f3ad03fffdbc4b7526;p=quix0rs-gnu-social.git diff --git a/plugins/Poll/classes/Poll_response.php b/plugins/Poll/classes/Poll_response.php index 21b390db80..78aec7ea05 100644 --- a/plugins/Poll/classes/Poll_response.php +++ b/plugins/Poll/classes/Poll_response.php @@ -46,7 +46,7 @@ class Poll_response extends Managed_DataObject { public $__table = 'poll_response'; // table name public $id; // char(36) primary key not null -> UUID - public $uri; // varchar(255) + public $uri; // varchar(191) not 255 because utf8mb4 takes more space public $poll_id; // char(36) -> poll.id UUID public $profile_id; // int -> profile.id public $selection; // int -> choice # @@ -61,7 +61,7 @@ class Poll_response extends Managed_DataObject 'description' => 'Record of responses to polls', 'fields' => array( 'id' => array('type' => 'char', 'length' => 36, 'not null' => true, 'description' => 'UUID of the response'), - 'uri' => array('type' => 'varchar', 'length' => 255, 'not null' => true, 'description' => 'UUID to the response notice'), + 'uri' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'UUID to the response notice'), 'poll_id' => array('type' => 'char', 'length' => 36, 'not null' => true, 'description' => 'UUID of poll being responded to'), 'profile_id' => array('type' => 'int'), 'selection' => array('type' => 'int'), @@ -100,9 +100,9 @@ class Poll_response extends Managed_DataObject return Notice::getKV('uri', $this->uri); } - function bestUrl() + function getUrl() { - return $this->getNotice()->bestUrl(); + return $this->getNotice()->getUrl(); } /**