Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章被评论时通知管理员功能无效 #748

Closed
toyo2333 opened this issue Jan 26, 2024 · 3 comments · Fixed by #750
Closed

文章被评论时通知管理员功能无效 #748

toyo2333 opened this issue Jan 26, 2024 · 3 comments · Fixed by #750
Labels
bug Something isn't working

Comments

@toyo2333
Copy link

使用的是SMTP发送服务,评论回复提醒功能是正常的,可以根据设置的信息,正常发送提醒邮件给被评论人的邮箱。

但是管理员提醒这个,收不到,预期应该是有人评论了我博客文章,那管理员应该可以收到邮件通知对吧。目前收不到。

日志显示 WARN Multi push disabled: no admin user found

管理员肯定是有的,站点的user设置里,是由admin角色的用户的。

配置里enable是true的

# Multi-push
admin_notify:
  # Notification template (set to file path to use custom template)
  notify_tpl: "default"
  # Noise mode
  # -- noise_mode is disabled by default. --
  # -- When this option is set to `false`, only messages sent to the administrator will be notified, --
  # -- such as "user A" replies to "user B", the communication between these two users will not be notified to the administrator. --
  noise_mode: false
  # Notify admin
  email:
    # Enable (can be disabled when using other push methods)
    enabled: true
    # Email subject (email subject sent to admin)
    mail_subject: '[{{site_name}}] Post "{{page_title}}" has new a comment'
    # Admin email template file (set to file path to use custom template)
    mail_tpl: ""
  # Telegram
@qwqcode
Copy link
Member

qwqcode commented Jan 26, 2024

试过重启 Artalk 吗

@toyo2333
Copy link
Author

toyo2333 commented Jan 26, 2024

试过重启 Artalk 吗

我是docker部署的,点击应用后,他就自己重启服务了吧?

另外我看文档,这一段https://artalk.js.org/guide/backend/multi-site.html#%E6%8E%A7%E5%88%B6%E7%AE%A1%E7%90%86%E5%91%98%E6%8E%A5%E6%94%B6%E9%82%AE%E4%BB%B6%E9%80%9A%E7%9F%A5

里面提到这个管理员意思是用户名也是admin?才算?

我通过 docker exec -it artalk artalk admin 创建的管理员 用户名输入的是ABC 我靠 这里有点晕了。。难道我创建的不是管理员 所以才报错‘日志显示 WARN Multi push disabled: no admin user found’?

@qwqcode
Copy link
Member

qwqcode commented Jan 26, 2024

问题确实存在,感谢反馈。当前的版本创建新管理员用户后,有概率会由于原来的管理员ID列表被缓存而无法刷新缓存。暂时的解决办法:创建管理员用户后,手动重启 Artalk 的 docker 容器 docker container restart artalk.

v2.8.0 将修复这个问题


另外:docker 容器创建新管理员用户,直接执行命令 docker exec -it artalk artalk admin 会提示输入邮箱、用户名、密码。

@qwqcode qwqcode added the bug Something isn't working label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants