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

KorbenDallas’s picture

Actually 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

KorbenDallas’s picture

I 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.

Stalski’s picture

Status: Needs review » Postponed

Needs review means you have posted a patch, which you did not

Stalski’s picture

Issue tags: +ActivityStatus

adding tag ActivityStatus

Stalski’s picture

Status: Postponed » Closed (fixed)

This 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)