Skip to content

Commit

Permalink
refactor(artalk)!: imgUploader -> imageUploader
Browse files Browse the repository at this point in the history
  • Loading branch information
inkss committed Jun 29, 2022
1 parent 9023ce5 commit 8cde195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ comments:
placeholder: # 评论占位
# artalk 有三类图片:1.上传至服务端 2.上传至服务端后利用upgit上传至图床 3.前端上传至图床(本配置为此类)
# 配置此项时将覆盖服务端上传能力
imgUploader:
imageUploader:
# 以兰空图床为例,下列填写内容为:
# url: 'https://xxxxxx/api/v1/upload'
# token: 'Bearer xxxxxxxxxxxxxx'
Expand Down
4 changes: 2 additions & 2 deletions layout/_plugins/comments/artalk/script.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
darkMode: volantis.dark.mode === "dark",
pvEl: '#artalk_visitors',
<% if(!!theme.comments.artalk.imgUploader?.api){ %>
<% if(!!theme.comments.artalk.imageUploader?.api){ %>
imgUploader: function(file) {
let headers = new Headers();
headers.set('Accept', 'application/json');
Expand All @@ -46,7 +46,7 @@
<% } %>
}));
Artalk.Use(ctx => {
Artalk.use(ctx => {
ctx.on('list-loaded', () => {
if (typeof VolantisFancyBox === "undefined"){
const checkFancyBox = setInterval(() => {
Expand Down

0 comments on commit 8cde195

Please sign in to comment.