correct reply url in comment display
authorChristian Weiske <cweiske@cweiske.de>
Mon, 26 Feb 2018 21:47:44 +0000 (22:47 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 26 Feb 2018 21:47:44 +0000 (22:47 +0100)
src/anoweco/Urls.php
www/comment.php

index 5096d3175a9ab22900746ae27ea99d989f426b99..3f0f6ca1335c470cedc1d5c4dc15eff8bbf38701 100644 (file)
@@ -44,5 +44,17 @@ class Urls
         }
         return intval($userId);
     }
         }
         return intval($userId);
     }
+
+    public static function reply($url)
+    {
+        return 'https://quill.p3k.io/'
+            . '?' . http_build_query(
+                [
+                    'dontask' => 1,
+                    'me'      => Urls::full('/'),
+                    'reply'   => $url,
+                ]
+            );
+    }
 }
 ?>
 }
 ?>
index e3843610c9b1a555c21d8e47a389d0a1c50dcc96..df39c3c5109354596bc1901b6526d58d6fa8f8fc 100644 (file)
@@ -39,9 +39,8 @@ $vars = array(
         'imageurl' => Urls::userImg($rowUser),
     ),
     'postUrl' => Urls::full(Urls::comment($rowComment->comment_id)),
         'imageurl' => Urls::userImg($rowUser),
     ),
     'postUrl' => Urls::full(Urls::comment($rowComment->comment_id)),
-    'replyUrl' => Urls::full(
-        '/reply.php?url='
-        . urlencode(Urls::full(Urls::comment($rowComment->comment_id)))
+    'replyUrl' => Urls::reply(
+        Urls::full(Urls::comment($rowComment->comment_id))
     ),
 );
 
     ),
 );