mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update ApiV1Controller
This commit is contained in:
parent
c8092116e5
commit
b365aa7e06
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,7 @@ use Purify;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use App\Http\Resources\MastoApi\FollowedTagResource;
|
use App\Http\Resources\MastoApi\FollowedTagResource;
|
||||||
use App\Jobs\HomeFeedPipeline\FeedWarmCachePipeline;
|
use App\Jobs\HomeFeedPipeline\FeedWarmCachePipeline;
|
||||||
|
use App\Jobs\HomeFeedPipeline\HashtagUnfollowPipeline;
|
||||||
|
|
||||||
class ApiV1Controller extends Controller
|
class ApiV1Controller extends Controller
|
||||||
{
|
{
|
||||||
|
@ -3822,6 +3823,7 @@ class ApiV1Controller extends Controller
|
||||||
if($follows) {
|
if($follows) {
|
||||||
HashtagService::unfollow($pid, $tag->id);
|
HashtagService::unfollow($pid, $tag->id);
|
||||||
HashtagFollowService::unfollow($tag->id, $pid);
|
HashtagFollowService::unfollow($tag->id, $pid);
|
||||||
|
HashtagUnfollowPipeline::dispatch($tag->id, $pid)->onQueue('feed');
|
||||||
$follows->delete();
|
$follows->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue