Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
It would be fantastic if the activityStatus plugin could log the uid_target. As it stands, when userA posts on userB's User Activity stream, activityStatus doesn't log the uid_target field in the database.
Thanks for your consideration and excellent module.
Comments
Comment #1
KorbenDallas CreditAttribution: KorbenDallas commentedActually it would be great if we could set up a Reaction Rule when an activityStatus is posted. This way we could setup a HB template to an Event like "log message when user posts on another user's profile". This is nearly identical to how when two people become friends in UR, we can setup a template and event for it.
Thanks again
Comment #2
KorbenDallas CreditAttribution: KorbenDallas commentedI tried using HB hooks hook_heartbeat_activity_presave and hook_heartbeat_activity_save, but it doesn't appear that activityStatus uses these hooks when it saves its message. :( I was using a condition to save the arg() uid integer to the $heartbeatActivity->uid_target variable, but it wouldn't work. So I tried doing a drupal_set_message inside the hooks, which never got triggered.
Comment #3
Stalski CreditAttribution: Stalski commentedNeeds review means you have posted a patch, which you did not
Comment #4
Stalski CreditAttribution: Stalski commentedadding tag ActivityStatus
Comment #5
Stalski CreditAttribution: Stalski commentedThis is working in heartbeat dev as well recently. It only works with a ActivityStatus message attached to the User Activity stream. So when visiting a user profile page and you shout there ... the viewed user will become the uid_target automatically. (if not in "view a user" context, normal mapping value will be logged)