Project

General

Profile

Actions

Bug #3813

closed

Notifications sending for unpublished items

Added by krileon over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11 December 2012
Due date:
% Done:

100%

Estimated time:

Description

Wall posts and other items shouldn't send a notification if they're unpublished. A new column needs to be added to keep track of if a notification was sent or not so a notification can be sent on first publish only.

https://www.joomlapolis.com/forum/153-professional-member-support/216693-wall-post-notification-when-post-is-not-yet-published

Actions #1

Updated by krileon over 11 years ago

  • Target version set to 2.7.0
Actions #2

Updated by krileon over 11 years ago

  • % Done changed from 0 to 10

Implemented new "notified" variable for wall posts. It now sets this on storage based off the published parameter, but only until it becomes published. Next it doesn't send a notification, unless it's approval notification, when the post is not published. Then once it is approved it checks if the post has been notified. If it has not and the status is being changed to published it will send the new post created notification. Post edited notification and post delete notifications also will now only send when a post is published.

This works flawlessly in 10 pass testing. Needs to now be implemented to the other integrations.

Actions #3

Updated by krileon over 11 years ago

Replaced new notified variable in favor of setting the published state to -1 for unapproved. This is a unique published state that can only be set once and that's on first storage. This is also checked against for showing new approval button and sending notifications if this is current state when publishing a wall post.

This implementation allows publish/unpublish to act freely of approval status. This way you can approve and later unpublish if you want without it being acted as if it's not approved.

If approval isn't enabled then it acts as if its status is 0 so it behaves normally with unpublish/publish.

Actions #4

Updated by krileon over 11 years ago

  • % Done changed from 10 to 30

Implemented for Photos and Videos integrations.

Actions #5

Updated by krileon over 11 years ago

  • % Done changed from 30 to 100
Actions #6

Updated by krileon about 11 years ago

  • Status changed from Assigned to Resolved
Actions #7

Updated by krileon about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF