From 1dcb694f3de8e46e1eef97bc08e0385aef0b6e8f Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:23:22 -0500 Subject: [PATCH] Image to Post - not a tag --- ext/not_a_tag/main.php | 2 +- ext/not_a_tag/test.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/not_a_tag/main.php b/ext/not_a_tag/main.php index be1c3e22..2658fb71 100644 --- a/ext/not_a_tag/main.php +++ b/ext/not_a_tag/main.php @@ -147,7 +147,7 @@ class NotATag extends Extension "DELETE FROM untags WHERE LOWER(tag) = LOWER(:tag)", ["tag"=>$input['d_tag']] ); - $page->flash("Image ban removed"); + $page->flash("Post ban removed"); $page->set_mode(PageMode::REDIRECT); $page->set_redirect(referer_or(make_link())); } elseif ($event->get_arg(0) == "list") { diff --git a/ext/not_a_tag/test.php b/ext/not_a_tag/test.php index a75f0a77..64495acf 100644 --- a/ext/not_a_tag/test.php +++ b/ext/not_a_tag/test.php @@ -13,12 +13,12 @@ class NotATagTest extends ShimmiePHPUnitTestCase // Original $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: pbx"); + $this->assert_title("Post $image_id: pbx"); // Modified OK send_event(new TagSetEvent($image, ["two"])); $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: two"); + $this->assert_title("Post $image_id: two"); // Modified Bad as user - redirect try { @@ -28,12 +28,12 @@ class NotATagTest extends ShimmiePHPUnitTestCase $this->assertTrue(true); } $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: two"); + $this->assert_title("Post $image_id: two"); // Modified Bad as admin - ignore (should warn?) $this->log_in_as_admin(); send_event(new TagSetEvent($image, ["four", "face"])); $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: four"); + $this->assert_title("Post $image_id: four"); } }