diff --git a/js/privatebin.js b/js/privatebin.js index 0de85941..e15a787a 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1187,7 +1187,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { // reload data ServerInteraction.prepare(); - ServerInteraction.setUrl(Helper.baseUri() + '?' + me.getPasteId()); + ServerInteraction.setUrl(Helper.baseUri() + '?pasteid=' + me.getPasteId()); ServerInteraction.setFailure(function (status, data) { // revert loading status… @@ -4658,7 +4658,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { Model.getPasteData(function (data) { ServerInteraction.prepare(); - ServerInteraction.setUrl(Helper.baseUri() + '?' + Model.getPasteId()); + ServerInteraction.setUrl(Helper.baseUri() + '?pasteid=' + Model.getPasteId()); ServerInteraction.setFailure(function (status, data) { // revert loading status… diff --git a/lib/Model/Paste.php b/lib/Model/Paste.php index cb572fcf..27890840 100644 --- a/lib/Model/Paste.php +++ b/lib/Model/Paste.php @@ -73,7 +73,7 @@ class Paste extends AbstractModel $data['comments'] = array_values($this->getComments()); $data['comment_count'] = count($data['comments']); $data['comment_offset'] = 0; - $data['@context'] = 'js/paste.jsonld'; + $data['@context'] = '?jsonld=paste'; $this->_data = $data; return $this->_data; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index b45dc5f2..0e5d55bb 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 288bca55..f8905ff5 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ if ($MARKDOWN): endif; ?> - +