My streams work fine at http://mydomain.com/stream (All users). However, nothing is displayed when I go to the user's stream link (http://mydomain.com/stream/USER). I get "there is no activity to show."
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | activitystream_pathauto2.patch | 3.19 KB | akalsey |
| #2 | activitystream_pathauto.patch | 2.91 KB | akalsey |
Comments
Comment #1
eojthebraveIf I understand you correctly I think the problem is that your going to mydomain.com/stream/USER-NAME, but should be going to mydomain.com/stream/USER-ID-NUMBER.
So for example, your username might be spiffyd, and your userid might be 13. You need to go to mydomain.com/stream/13 in order for this to work.
You can find out your user ID by going to the "My Account" page and whatever number is listed after user/ is your user ID number.
I do think that it would be a nice feature, and pretty easy to setup so that you could go to either, and get the same results.
Comment #2
akalsey commentedThis is the same issue as #288026: Missing User Name in User's Activity Stream Title
To add /stream/USERNAME, you could use Pathauto or some other way of creating aliases. The attached patch adds pathauto support to Activity Stream. It should apply and work on both 5.x and 6.x. It's untested, but it's almost a complete copy and paste from the pathauto module.
Comment #3
akalsey commentedComment #4
akalsey commentedActually, that patch won't work. That creates a duplicate hook_user function, and tries to run pathauto functions even if pathauto isn't installed. This one should be better.