#2494 closed defect (bug) (fixed)
Changing topic status might not spam/unspam replies
Reported by: | johnjamesjacoby | Owned by: | |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | API - Moderation | Keywords: | |
Cc: |
Description (last modified by )
Clicking the spam link works correctly, but I have a hunch just changing the status of a topic will not mark the replies of that topic, since bbp_toggle_topic_handler()
is not hooked to that action.
Change History (12)
#5
@
10 years ago
What I've come up with so far...
Trashing and restoring topics
- PHPDoc ref to
bbp_sticked_topic
inbbp_stick_topic()
that needs to be updated tobbp_stuck_topic
- Trashed replies missing
bbp_reply_admin_links()
- Verbiage
Untrashing
should beRestoring
- After trashing a topic with 5 replies, topic header
This topic contains 4 replies (+ 5 hidden), has 1 voice, and was last updated by admin 22 hours, 18 minutes ago.
is not accurate.
ERROR: There was a problem untrashing the topic.
<- This notice should be at the top of the page rather than a notice at the bottom the page where it is easily missed.
- After restoring a trashed topic meta key
_bbp_pre_trashed_replies
should be removed
- After restoring a trashed topic with 5 replies
This topic contains 1 reply, has 1 voice, and was last updated by admin 22 hours, 22 minutes ago.
is not accurate.
- Trashing a topic correctly trashes the topics replies
- Deleting a trashed topic correctly deletes the topic and trashed replies
- Restoring a trashed topic correctly restores the topics replies
Trashing and restoring a single reply
- Reply post meta key
_wp_trash_meta_status
=publish
added - Reply post meta key
_wp_trash_meta_time
=1402971584
added - Trashed reply includes
bbp_reply_admin_links()
as expected (see above) - Trashing a single reply keeps accurate topic header counts for replies and/or hidden replies
Will test more of the above and spam/unspam tomorrow...
#9
follow-up:
↓ 11
@
10 years ago
A couple more things here:
- When unspamming a topic the topics replies should also be restored
- (they are correctly trashed when the topic is marked as spam)
- When unspamming, spamming, trashing or restoring a trashed single topic, a post revision are created for the topic and each reply
- When unspamming, spamming, trashing or restoring a trashed single reply, a post revision is created for the reply
Note: See
TracTickets for help on using
tickets.
In 5406: