-
-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tap no longer works since 4.4.3 #1034
Comments
Hi @seabasss I'm the one who pushed that PR. I won't pretend like I know all the ins and outs of this package but my understanding is that both methods should be called? This addition should not override anything, it adds an optional callback before the activity gets saved. What does your |
I'm also pretty sure that both methods are called - as the PS: just from the name |
I did some additional testing and both methods are called. Like @Gummibeer said, I suspect you are overriding the |
Thanks! Yes, i have different logic and it’s not only team_id I want to tap, but in my case I would prefer if tap() is prioritized, since tapActivity() is always run and it renders tap() useless. And in the case you want tapActivity(), just don’t use tap(). If there are other aspects of why this is not a good idea I’ll rest my case. I got it to work without tap(), I was just a little puzzled when my activities stopped showing up in my feed since my filter key stopped being logged. |
I would recommend you to use something like that |
Ah, that would work. Thanks! |
I too consider this a "breaking" change. I haven't dove in to the previous versions code before updating, but I was using Note: I personally preferred it the previous way, but I suppose I might have been using this package incorrectly. |
Tap isn't overridden but both are executed now. |
Describe the bug
Since 4.4.3
team_id
is no longer being tapped for my activities. See code below.To Reproduce
Edit // I found out the issue. It's this addition to
ActivityLogger.php
:That made my
activity()->tap()
be overridden by thetapActivity
method on the subject model (which I'm also using independently). I made it work anyway, but shouldn't you be able to tap whatever you want withactivity()->tap()
without something else overriding it? Thanks!Expected behavior
team_id should be set
Versions (please complete the following information)
The text was updated successfully, but these errors were encountered: