This post is deleted!
-
@torn2 said in This post is deleted!:
It was a plugin which caused this. @exodo When I upgraded your plugin ignore users to 1.1.12 and I reset the forum, all users would only see "This post is deleted!" Once I deactivated the plugin, everything is back to working.
Will check this as soon as possible. Thanks for feedback.
-
@torn2 cannot replicate this on my local installation (nodebb v.1.2.1). Can you provide any more details? Any other plugins installed, use case when the error is happening (if not always etc).
The behaviour should be:
- When an user is ignoring other user: " This message is hidden because its author is in your ignored list.".
- When an user is ignoring another user, and after the page is rendered he/she unignores:
1- If the post is not deleted, show the original post.
2- If the post is deleted, show "This post is deleted!".
Thanks in advance. (if you want please comment on the plugin thread itself or open a github issue https://github.com/exo-do/nodebb-plugin-ignore-users and i'll have a look, i've just tested it and can't reproduce).
-
@jarey Hey, well the issues happened after I restarted the forum. I had upgraded to 1.1.12 a couple days earlier (didn't restart after the upgrade). All users immediately started reporting that every post said it was deleted when they entered a topic. The posts became visible again after I deactivated the plugin. I, as admin, could read every post, however when I used my test account all the posts were saying deleted. This is the only plugin I had to disable for the topics to become visible again.
Here are the plugins we use that are active:
nodebb-plugin-cards
nodebb-plugin-colors
nodebb-plugin-composer-default
nodebb-plugin-custom-pages
nodebb-plugin-emailer-mailgun
nodebb-plugin-emoji-exodo
nodebb-plugin-emoji-extended
nodebb-plugin-iframely
nodebb-plugin-imgur
nodebb-plugin-katex
nodebb-plugin-markdown
nodebb-plugin-mentions
nodebb-plugin-ns-spoiler
nodebb-plugin-poll
nodebb-plugin-registration-notification
nodebb-plugin-solr
nodebb-plugin-soundpack-default
nodebb-plugin-spam-be-gone
nodebb-rewards-essentials
nodebb-theme-persona
nodebb-widget-essentials -
@jarey Any update on this issue? If I activate this plugin all regular (non-admin or moderator) users get "This post is deleted!", people are starting to leave my forum after arguments erupt as they can't deal with each other in a civil manner
-
You can correct this by changing the line (about 42) in the library.js in the plugin folder
from...
if (p.deleted && !(privi[0].isAdminOrMod || p.selfPost)) {
to...
if (p.deleted === 1 && !(privi[0].isAdminOrMod || p.selfPost)) {
Hope that helps
Thanks
Ted
-
@tedbaker said in This post is deleted!:
You can correct this by changing the line (about 42) in the library.js in the plugin folder
from...
if (p.deleted && !(privi[0].isAdminOrMod || p.selfPost)) {
to...
if (p.deleted === 1 && !(privi[0].isAdminOrMod || p.selfPost)) {
Hope that helps
Thanks
Ted
Thank you very much @tedbaker. Since i couldn't replicate the issue it hasn't be fixed yet. I will publish just today your fix after testing ( doesn't seem that your change will broke anything so it looks great to me).
Again thanks for the contribution.
-
@tedbaker versión 1.1.13 has been just pushed to npm (it should be available right now). Thanks again.
pinging @torn2 to let him know of the available new version fixing the problem.
PS: 3 little bugs pending of resolution if anyone want to contribute with PR: https://github.com/exo-do/nodebb-plugin-ignore-users/issues