Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #8562, comment 1


Ignore:
Timestamp:
09/01/2021 05:12:35 PM (3 years ago)
Author:
shawfactor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8562, comment 1

    initial v1  
    22
    33
    4 1. Decouple the fetching/looping from the formatting of notifications, bp_notifications_get_notifications_for_user  should be a wrapper for a loop that invokes the formatting function on each notification
     41. Decouple the fetching/looping from the formatting of notifications, bp_notifications_get_notifications_for_user  should be a wrapper for a loop that invokes one of two formatting functions on each notification (one function to return a string and one an object)
    55
    6 2. when an object is returned it should be MUCH richer and include attributes like title, icon etc. which would enable notification to be consumed by many other channels e.g. specific apps, JavaScript notifications and the web push api.
     62. when an object is returned it should be MUCH richer and include attributes like title, icon etc. which would enable notification to be consumed by many other channels e.g. specific apps, JavaScript notifications and the browser web push api.
    77