add uploader-id and top-tagger-id data attrs to post previews

This commit is contained in:
Albert Yi
2018-04-09 11:12:07 -07:00
parent 23fef71346
commit 485c3b01c7
2 changed files with 7 additions and 1 deletions

View File

@@ -98,6 +98,8 @@ class PostPresenter < Presenter
data-pixiv-id="#{post.pixiv_id}"
data-file-ext="#{post.file_ext}"
data-source="#{h(post.source)}"
data-top-tagger="#{post.keeper_id}"
data-uploader-id="#{post.uploader_id}"
data-normalized-source="#{h(post.normalized_source)}"
data-is-favorited="#{post.favorited_by?(CurrentUser.user.id)}"
}