mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Two query patterns were copy-pasted across several call sites:
- The 'users who blocked me, plus myself' list used to filter profile
search (UserFilter::whereFilterableId($pid)->pluck('user_id')->push($pid))
appeared in ComposeController (x2) and DirectMessageController. Extracted
to UserFilterService::searchExcludedProfileIds(). Note this is the
inverse of blocks() (who I blocked), so it is a distinct method.
- CustomEmoji duplicate detection (groupBy('shortcode')->havingRaw(
'count(*) > 1')) appeared three times in AdminController. Extracted to a
CustomEmoji::duplicateShortcodes() query scope.
Adds tests for both. No behaviour change.
|
3 weeks ago | |
|---|---|---|
| .. | ||
| Account | 4 weeks ago | |
| Admin | 4 weeks ago | |
| Api | 3 weeks ago | |
| Auth | 4 weeks ago | |
| AuthScope | 4 weeks ago | |
| Compose | 4 weeks ago | |
| Console | 4 weeks ago | |
| CriticalRoutes | 4 weeks ago | |
| Federation | 4 weeks ago | |
| Framework | 4 weeks ago | |
| MediaPipeline | 4 weeks ago | |
| Security | 4 weeks ago | |
| Settings | 4 weeks ago | |
| ActivityPubDeliveryServiceTest.php | 4 weeks ago | |
| AdminRemoveCwTest.php | 4 weeks ago | |
| CommentPrivatePostTest.php | 4 weeks ago | |
| ComposeControllerTest.php | 4 weeks ago | |
| DedupeQueryPatternsTest.php | 3 weeks ago | |
| DeleteWorkerAuthorizationTest.php | 4 weeks ago | |
| HttpClientMigrationTest.php | 4 weeks ago | |
| LoginTest.php | 1 year ago | |
| ModelNamespaceMigrationTest.php | 4 weeks ago | |
| NotificationServiceTest.php | 4 weeks ago | |
| RemoteAuthServiceTest.php | 3 weeks ago | |
| RemoteOidcTest.php | 4 weeks ago | |
| SeasonalAggregationTest.php | 3 weeks ago | |
| ValidUsernameTest.php | 4 weeks ago | |