Merge pull request #4769 from pixelfed/staging

Update ApiV1Controller
This commit is contained in:
daniel 2023-11-15 00:18:02 -07:00 committed by GitHub
commit 57584391a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}