ok now all messages back should work fine
This commit is contained in:
parent
8de36b13dd
commit
7f2faec632
2 changed files with 4 additions and 4 deletions
3
TODO.md
3
TODO.md
|
@ -1,4 +1,3 @@
|
||||||
- modifying whether a cw is used or not?
|
- modifying whether a cw is used or not?
|
||||||
- POSSIBLY editing messages / changing their visibility? idk
|
- POSSIBLY editing messages / changing their visibility? idk
|
||||||
- some way to automatically get notified
|
- some way to automatically get notified
|
||||||
- some way to automatically post to fedi on response
|
|
|
@ -11,12 +11,13 @@ if ($_GET["text"] !== null) {
|
||||||
$cdate = date("Y-m-d H:i:sP");
|
$cdate = date("Y-m-d H:i:sP");
|
||||||
$query = "
|
$query = "
|
||||||
UPDATE data
|
UPDATE data
|
||||||
SET \"responsetext\" = '{$text}', \"responsetime\" = timestamptz'{$cdate}', isrespondedto = True
|
SET \"responsetime\" = timestamptz'{$cdate}', isrespondedto = True
|
||||||
WHERE id = {$id};
|
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) {
|
if ($fediEnabled) {
|
||||||
include 'fedi.php';
|
include 'fedi.php';
|
||||||
|
|
Loading…
Add table
Reference in a new issue