Image to Post - tag edit

This commit is contained in:
Matthew Barbour 2020-10-26 10:18:51 -05:00
parent 21f48456a2
commit 886d7cfd99
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ class TagEditInfo extends ExtensionInfo
<ul>
<li>Numeric Score
<ul>
<li>vote=(up, down, remove) -- vote, or remove your vote on an image
<li>vote=(up, down, remove) -- vote, or remove your vote on a post
</ul>
<li>Pools
<ul>

View File

@ -9,12 +9,12 @@ class TagEditTest 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
send_event(new TagSetEvent($image, ["new"]));
$this->get_page("post/view/$image_id");
$this->assert_title("Image $image_id: new");
$this->assert_title("Post $image_id: new");
}
public function testInvalidChange()
@ -36,7 +36,7 @@ class TagEditTest extends ShimmiePHPUnitTestCase
$this->log_in_as_user();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", str_repeat("a", 500));
$this->get_page("post/view/$image_id");
$this->assert_title("Image $image_id: tagme");
$this->assert_title("Post $image_id: tagme");
}
public function testSourceEdit()

View File

@ -68,7 +68,7 @@ class TagEditTheme extends Themelet
$h_owner = html_escape($image->get_owner()->name);
$h_av = $image->get_owner()->get_avatar_html();
$h_date = autodate($image->posted);
$h_ip = $user->can(Permissions::VIEW_IP) ? " (".show_ip($image->owner_ip, "Image posted {$image->posted}").")" : "";
$h_ip = $user->can(Permissions::VIEW_IP) ? " (".show_ip($image->owner_ip, "Post posted {$image->posted}").")" : "";
return "
<tr>
<th>Uploader</th>