diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-21 16:18:49 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-21 16:18:49 +0500 |
| commit | f496c838d202e16f65b6efa6207b877f0596ae1e (patch) | |
| tree | 19a89ec575c658cb00abcef6f2b61862dad06fb3 /src | |
| parent | 1f4877e3a8d59a4a4fb20d175b69d5e8f3349e5c (diff) | |
feat: emote removal
Diffstat (limited to 'src')
| -rw-r--r-- | src/emotes/single_page.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/emotes/single_page.php b/src/emotes/single_page.php index b76fda8..3fa0a30 100644 --- a/src/emotes/single_page.php +++ b/src/emotes/single_page.php @@ -50,21 +50,21 @@ include_once "../../src/config.php"; $db = null; ?> - <?php - if ($added) { ?> - <form action="/emotes/remove.php" method="POST"> - <input type="text" name="id" value="<?php echo $emote->get_id() ?>" - style="display: none;"> + <form action="/emotes/setmanip.php" method="POST"> + <input type="text" name="id" value="<?php echo $emote->get_id() ?>" + style="display: none;"> + <?php + if ($added) { ?> + <input type="text" name="action" value="remove" style="display: none;"> <button type="submit" class="red">Remove from my channel</button> - </form><?php - } else { ?> - <form action="/emotes/add.php" method="POST"> - <input type="text" name="id" value="<?php echo $emote->get_id() ?>" - style="display: none;"> + <?php + } else { ?> + <input type="text" name="action" value="add" style="display: none;"> <button type="submit" class="green">Add to my channel</button> - </form><?php - } - ?> + <?php + } + ?> + </form> </div> <div class="items row right full"> <form action="/emotes/rate.php" method="POST"> |
