We have previously detected offensive tags, but generally we've acted to remove the content under the tag without acting on the tag landing page itself. That would be my recommended move for now.
That said, I can understand wanting to be able to delete the tag landing page too just in case someone were to stumble upon it β it's unlikely to happen if the content posted under the tag is removed, but it is a possibility.
I also think from an admin standpoint it might be nice to block certain tags from being created.
Or maybe there could be a feature to silently hide a tag. I'm thinking hiding a tag would make it so that the tag page and all posts that are tagged with that tag would be de-indexed from search engines and left out of user feeds on the Forem. This might be a good spam mitigation technique too as I've noticed that some spammers come in and use the same tag for their spam over and over.
I think being able to silently hide a tag and also tell search engines not to index those pages would be a good solution but it sounds like it might just be easier to build an option for admins to delete any tags that were clearly created by mistake or maliciously. I think it goes back to whether or not this was more of a technical decision.
Realistically we should at least 404 any tag with 0 published posts... Whether or not we technically delete it from the database.
I think this would be best. Iβm certainly hoping that users do not behave badly, and Iβm not seeing this problem occur yet but itβs good that we are discussing it.
I like this suggestion, too, as that's also the result you get from a tag that doesn't exist at all, so it does effectively delete/delist the tag.
I think in addition, it would be nice for tags with 0 posts to be undiscoverable except by admins using the tag manager, so even if there aren't a lot of posts on a Forem the 0 posts tags don't appear in Top Tags or similar lists.
Since tags get created whenever they are included in a post, the tag exists even with no published posts.
It has been determined that the expected behavior should be a 404 response. If the tag is supported than the expectation is that the admin wants it to show up, even with no posts. (Likely a no posts yet scenario.)
I also really liked that suggestion above to only show supported tags in the /tags page. Would be nice to be able to focus on the important tags but maybe also have a search feature to quickly navigate to any other tag you might be interested in.
For further actions, you may consider blocking this person and/or reporting abuse
This is a great question!
We have previously detected offensive tags, but generally we've acted to remove the content under the tag without acting on the tag landing page itself. That would be my recommended move for now.
That said, I can understand wanting to be able to delete the tag landing page too just in case someone were to stumble upon it β it's unlikely to happen if the content posted under the tag is removed, but it is a possibility.
I also think from an admin standpoint it might be nice to block certain tags from being created.
Or maybe there could be a feature to silently hide a tag. I'm thinking hiding a tag would make it so that the tag page and all posts that are tagged with that tag would be de-indexed from search engines and left out of user feeds on the Forem. This might be a good spam mitigation technique too as I've noticed that some spammers come in and use the same tag for their spam over and over.
Realistically we should at least 404 any tag with 0 published posts... Whether or not we technically delete it from the database.
Example: dev.to/t/sex <- No posts. Should probably render not found.
These are all good suggestions @michaeltharrington
I think being able to silently hide a tag and also tell search engines not to index those pages would be a good solution but it sounds like it might just be easier to build an option for admins to delete any tags that were clearly created by mistake or maliciously. I think it goes back to whether or not this was more of a technical decision.
I think this would be best. Iβm certainly hoping that users do not behave badly, and Iβm not seeing this problem occur yet but itβs good that we are discussing it.
Indeed! This is a great one to bring up, Ildi.
And I like Ben's point that tags with 0 published posts should 404. That makes a lotta sense.
I like this suggestion, too, as that's also the result you get from a tag that doesn't exist at all, so it does effectively delete/delist the tag.
I think in addition, it would be nice for tags with 0 posts to be undiscoverable except by admins using the tag manager, so even if there aren't a lot of posts on a Forem the 0 posts tags don't appear in Top Tags or similar lists.
Merged the 404 for 0 posts/unsupported tags. Will be live in Forem Cloud shortly.
Return 404 if empty and unsupported tag #14864
What type of PR is this? (check all applicable)
Description
Since tags get created whenever they are included in a post, the tag exists even with no published posts.
It has been determined that the expected behavior should be a
404
response. If the tag is supported than the expectation is that the admin wants it to show up, even with no posts. (Likely a no posts yet scenario.)Related Tickets & Documents
Closes github.com/forem/rfcs/issues/282
Originally came out of this discussion: forem.dev/ildi/is-it-possible-to-d...
Added/updated tests?
[Forem core team only] How will this change be communicated?
This should mostly just fill expected behavior.
Thanks for the update Ben!
I also really liked that suggestion above to only show supported tags in the
/tags
page. Would be nice to be able to focus on the important tags but maybe also have a search feature to quickly navigate to any other tag you might be interested in.