In short, if the last action on the post is someone posting an answer, it shows "answered [x] minutes ago PosterName". However, deleting and undeleting a different answer (posted earlier) causes it to switch to "modified [x] minutes ago PosterName", even though post deletion and undeletion do not cause bumping. The last action on the post was answering, so it should continue to show as "answered".
For example, I tested this out in the sandbox:
Answer is posted:
30 seconds later, another answer is deleted (and optionally undeleted; or vice versa probably), changing the label but not bumping it:
The behavior that it should be is:
- Find the last active post
- If the last active post is deleted it should say "modified"
- If the last active post is not deleted and not edited it should say "answered"
- If the last active post was edited, it should say "modified". No duh.
Here's my original bug report, which you can probably just skip unless you need another example:
I just posted an answer to a question, then left the page without doing anything else. But it says the last action on the page is me modifying something, with the modified link (which shows the last activity) redirecting to a link to my answer, as shown below on the active tab of the home page (it's at the top of the list):
(The other active page, under Questions, also shows this problem.)
I didn't modify the answer after posting (not even during the grace period) nor did I do something else that would cause a "modified" bump (protection, close/reopen votes, add bounty, messing with deletion). There were no deleted answers when this happened. I'm not sure if the problem is related to the question having a bounty on it (by the OP, who is deleted).
None of the other activity on the active page shows this problem. (The "modified 10 minutes ago" on the second question is an edit to an answer.)
Since I first posted this question, another user (named 1006a) posted an answer to the exact same question. For some time the listing read "answered X minutes ago", but now it says "modified X minutes ago" even though it points to the same, unedited answer. However, I noticed that there is now a deleted answer which was last edited before 1006a's answer was posted, but was deleted after it was posted. Now I'm wondering if it has anything to do with deletion.