mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-03-03 18:25:47 +00:00
Merge pull request #5817 from pixelfed/staging
Update AppRegisterController
This commit is contained in:
commit
e92f629826
3 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,7 @@ class HashtagFollow extends Model
|
|||
'hashtag_id'
|
||||
];
|
||||
|
||||
const MAX_LIMIT = 250;
|
||||
const MAX_LIMIT = 25;
|
||||
|
||||
public function hashtag()
|
||||
{
|
||||
|
|
|
@ -255,6 +255,7 @@ class AppRegisterController extends Controller
|
|||
|
||||
$expiresAt = $tokenModel->expires_at ?? now()->addDays(config('instance.oauth.token_expiration', 356));
|
||||
$expiresIn = now()->diffInSeconds($expiresAt);
|
||||
AppRegister::whereEmail($email)->delete();
|
||||
|
||||
return response()->json([
|
||||
'status' => 'success',
|
||||
|
|
|
@ -73,6 +73,7 @@ class FetchNodeinfoPipeline implements ShouldQueue, ShouldBeUniqueUntilProcessin
|
|||
$instance->user_count = Profile::whereDomain($instance->domain)->count();
|
||||
$instance->nodeinfo_last_fetched = now();
|
||||
$instance->last_crawled_at = now();
|
||||
$instance->delivery_timeout = 0;
|
||||
$instance->save();
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue