ok now all messages back should work fine

This commit is contained in:
notfire 2024-12-09 18:12:23 -05:00
parent 8de36b13dd
commit 7f2faec632
No known key found for this signature in database
GPG key ID: 3AFDACAAB4E56B16
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,3 @@
- modifying whether a cw is used or not?
- POSSIBLY editing messages / changing their visibility? idk
- some way to automatically get notified
- some way to automatically post to fedi on response
- some way to automatically get notified

View file

@ -11,12 +11,13 @@ if ($_GET["text"] !== null) {
$cdate = date("Y-m-d H:i:sP");
$query = "
UPDATE data
SET \"responsetext\" = '{$text}', \"responsetime\" = timestamptz'{$cdate}', isrespondedto = True
SET \"responsetime\" = timestamptz'{$cdate}', isrespondedto = True
WHERE id = {$id};
";
pg_update($db, "data", array("responsetext" => $text, "responsetime" => "timestamptz'{$cdate}", "isrespondedto" => "True"), array("id" => $id));
pg_query($db, $query);
pg_update($db, "data", array("responsetext" => $text), array("id" => $id));
if ($fediEnabled) {
include 'fedi.php';