Update ApiV1Controller

This commit is contained in:
Daniel Supernault 2023-11-15 00:17:31 -07:00
parent c8092116e5
commit b365aa7e06
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -105,6 +105,7 @@ use Purify;
use Carbon\Carbon;
use App\Http\Resources\MastoApi\FollowedTagResource;
use App\Jobs\HomeFeedPipeline\FeedWarmCachePipeline;
use App\Jobs\HomeFeedPipeline\HashtagUnfollowPipeline;
class ApiV1Controller extends Controller
{
@ -3822,6 +3823,7 @@ class ApiV1Controller extends Controller
if($follows) {
HashtagService::unfollow($pid, $tag->id);
HashtagFollowService::unfollow($tag->id, $pid);
HashtagUnfollowPipeline::dispatch($tag->id, $pid)->onQueue('feed');
$follows->delete();
}