solved jrFollow datastore

iamtimbo
@iamtimbo
7 years ago
301 posts
I'm trying to customise some timeline templates with different kinds of mentions, but I don't understand the jrFollow datastore. For each entry, there is follow_active, which is presumably 1 when a profile is followed, and follow_profile_id, which is the id of the profile being followed (the followee, as it were).

I was expecting to see an id for the instigator (the follower), but there isn't one. This confuses how I had thought I would construct my list, which was going to be along the lines of 'where profile_id=$profile_id AND follow_active=1' etc etc

If I did that with follow_profile_id it would just list every profile that is followed. What am I missing?
updated by @iamtimbo: 10/23/17 01:50:30PM
paul
@paul
7 years ago
4,331 posts
The 'follower' profile (and user) IDs are '_profile_id' (and '_user_id').
And just to clarify 'follow_active', that is set to 1 when the follow is instigated and the datastore entry is created. If the follower then un-follows it is set to 0 but the entry remains on the datastore so yes, its correct that you check for this in your search.
Hope that helps


--
Paul Asher - JR Developer and System Import Specialist
iamtimbo
@iamtimbo
7 years ago
301 posts
Thanks, Paul, I'll carry on fiddling!