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 | |
|---|---|---|
| .. | ||
| Auth | 4 weeks ago | |
| Console/Commands | 3 weeks ago | |
| Events | ||
| Http | 3 weeks ago | |
| Jobs | 3 weeks ago | |
| Listeners | ||
| Models | 3 weeks ago | |
| Observers | ||
| Passport | ||
| Policies | ||
| Providers | 3 weeks ago | |
| Rules | 4 weeks ago | |
| Services | 3 weeks ago | |
| Transformer | 4 weeks ago | |
| Util | 3 weeks ago | |
| HasSnowflakePrimary.php | ||
| helpers.php | ||