enable post view count tracking (for mods initially)
This commit is contained in:
9
app/views/posts/partials/show/_view_count.html.erb
Normal file
9
app/views/posts/partials/show/_view_count.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<% if CurrentUser.user.is_moderator? %>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$.post("<%= Danbooru.config.reportbooru_server %>/post_views", {
|
||||
msg: "<%= msg %>"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user