These are chat archives for ushahidi/Community
ok , my long weekend is officially ON :fire: wohoo :sparkles:
so, the post button is a directive being called from post-toolbar.html ( <add-post-button></add-post-button> )
I don't get exactly what you want to do with the user post gravatar :/ if it helps: the post data is coming from a get request that is done using the post-endpoint.js file, and in turn the getPostDetail function in the post-view-map-directive.js file is the one called when you click on that map marker ...
BUT, if you look at the card.html file in the post views , you will notice that the gravatar is being displayed in the post-metadata directive (specifically it's used in the template app/main/posts/common/post-metadata.html) . And then if you go there to the directive js code, you can see that post.user is assigned like this: $scope.post.user = PostMetadataService.loadUser($scope.post);
ohh I think I know what you mean. I saw key names for attributes like that last time I checked that part of the BD/codebase on attributes. Give me a few minutes and i'll come back with something useful, hopefully.
Also, you can access post.values['1234key'] (any key used with square bracket notation) and it will work fine.