Commit 8b5fc6b5 authored by Mark Harding's avatar Mark Harding

(fix): 302 vs 301 for /play endpoint and do not record metric on source grab

parent 4f21baaa
No related merge requests found
Pipeline #86096870 waiting for manual action with stages
in 10 minutes and 19 seconds
......@@ -38,10 +38,10 @@ class media implements Interfaces\Api, Interfaces\ApiIgnorePam
switch ($entity->subtype) {
case "video":
Helpers\Counters::increment($pages[0], 'plays');
// Helpers\Counters::increment($pages[0], 'plays');
if (isset($pages[1]) && $pages[1] == 'play') {
http_response_code(301);
http_response_code(302);
if ($entity->subtype == 'audio') {
\forward($entity->getSourceUrl('128.mp3'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment