Opened 4 years ago

Last modified 4 years ago

#1905 new bug

Cron job to marble forum post doesn't work correctly

Reported by: shevek Owned by:
Priority: major Milestone: unassigned
Component: BW Forum Keywords: easy
Cc:

Description

A cron job is scheduled to set the column 'OwnerCanStillEdit' in forums_posts every half hour turing them into marble. This obviously doesn't work correctly in some cases.

As the info when the post was made is part of the $post variable used in singlepost.php we could get rid of the cron job altogether and instead check the condition directly.

Change History (1)

comment:1 Changed 4 years ago by shevek

If we want to keep the possibility of a moderator to enable editing for a user again we could use the OwnerCanStillEdit column differently.

A post will always be written with OwnerCanStillEdit = No. If the Column is set to Yes it overrides the marbling after half an hour. After editing 'OwnerCanStillEdit' is set to 'No' again.

Needs one single clean up run on the DB to set all 'OwnerCanStillEdit' to 'No'.

Note: See TracTickets for help on using tickets.