diff --git a/ext/favorites/info.php b/ext/favorites/info.php index baab8e90..5a6e2591 100644 --- a/ext/favorites/info.php +++ b/ext/favorites/info.php @@ -13,5 +13,5 @@ class FavoritesInfo extends ExtensionInfo "Gives users a \"favorite this image\" button that they can press
Favorites for a user can then be retrieved by searching for \"favorited_by=UserName\"
Popular images can be searched for by eg. \"favorites>5\" -
Favorite info can be added to an image's filename or tooltip using the \$favorites placeholder"; +
Favorite info can be added to a post's filename or tooltip using the \$favorites placeholder"; } diff --git a/ext/favorites/main.php b/ext/favorites/main.php index f19311b6..e1c66a1f 100644 --- a/ext/favorites/main.php +++ b/ext/favorites/main.php @@ -75,7 +75,7 @@ class Favorites extends Extension $i_days_old = ((time() - strtotime($event->display_user->join_date)) / 86400) + 1; $h_favorites_rate = sprintf("%.1f", ($i_favorites_count / $i_days_old)); $favorites_link = make_link("post/list/favorited_by={$event->display_user->name}/1"); - $event->add_stats("Images favorited: $i_favorites_count, $h_favorites_rate per day"); + $event->add_stats("Posts favorited: $i_favorites_count, $h_favorites_rate per day"); } public function onImageInfoSet(ImageInfoSetEvent $event) diff --git a/ext/favorites/test.php b/ext/favorites/test.php index 7df3e0eb..933180eb 100644 --- a/ext/favorites/test.php +++ b/ext/favorites/test.php @@ -9,7 +9,7 @@ class FavoritesTest extends ShimmiePHPUnitTestCase # No favourites $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: test"); + $this->assert_title("Post $image_id: test"); $this->assert_no_text("Favorited By"); # Add a favourite @@ -17,7 +17,7 @@ class FavoritesTest extends ShimmiePHPUnitTestCase # Favourite shown on page $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: test"); + $this->assert_title("Post $image_id: test"); $this->assert_text("Favorited By"); # Favourite shown on index @@ -26,14 +26,14 @@ class FavoritesTest extends ShimmiePHPUnitTestCase # Favourite shown on user page $this->get_page("user/test"); - $this->assert_text("Images favorited: 1"); + $this->assert_text("Posts favorited: 1"); # Delete a favourite send_event(new FavoriteSetEvent($image_id, $user, false)); # No favourites $this->get_page("post/view/$image_id"); - $this->assert_title("Image $image_id: test"); + $this->assert_title("Post $image_id: test"); $this->assert_no_text("Favorited By"); } } diff --git a/ext/favorites/theme.php b/ext/favorites/theme.php index b2c3ca23..b6e06e5a 100644 --- a/ext/favorites/theme.php +++ b/ext/favorites/theme.php @@ -34,23 +34,23 @@ class FavoritesTheme extends Themelet public function get_help_html() { - return '
Search for images that have been favorited a certain number of times, or favorited by a particular individual.
+ return 'Search for posts that have been favorited a certain number of times, or favorited by a particular individual.
favorites=1-
Returns images that have been favorited once.
+Returns posts that have been favorited once.
favorites>0-
Returns images that have been favorited 1 or more times
+Returns posts that have been favorited 1 or more times
Can use <, <=, >, >=, or =.
favorited_by:username-
Returns images that have been favorited by "username".
+Returns posts that have been favorited by "username".
favorited_by_userno:123-
Returns images that have been favorited by user 123.
+Returns posts that have been favorited by user 123.