implemented archive post api in home

This commit is contained in:
Václav Šmejkal 2024-05-25 17:12:59 +02:00
parent bc7ae07530
commit b9936781d5
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -137,4 +137,16 @@
{
$("#image_popup").css("display", "none");
}
function archive_post(post_id, author)
{
$.ajax
({
url: "./res/forum/api/archive_post.php?username=" + author + "&post_id=" + post_id,
success: function()
{
show("home");
}
});
}
</script>