correct reply url in comment display
[anoweco.git] / src / anoweco / Urls.php
index 5096d3175a9ab22900746ae27ea99d989f426b99..3f0f6ca1335c470cedc1d5c4dc15eff8bbf38701 100644 (file)
@@ -44,5 +44,17 @@ class Urls
         }
         return intval($userId);
     }
+
+    public static function reply($url)
+    {
+        return 'https://quill.p3k.io/'
+            . '?' . http_build_query(
+                [
+                    'dontask' => 1,
+                    'me'      => Urls::full('/'),
+                    'reply'   => $url,
+                ]
+            );
+    }
 }
 ?>