enable post view count tracking (for mods initially)

This commit is contained in:
r888888888
2017-11-09 16:10:34 -08:00
parent 0079e107fa
commit 131734f7a6
2 changed files with 17 additions and 0 deletions

View 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 %>