Commit Graph

49 Commits (f9611a6704f5de2b967e00e29e3d41a732f78f77)

Author SHA1 Message Date
Lily Cohen f9611a6704 Give the nested boost target Mastodon field names 2 days ago
Your Name 99031fa6bc ReturnTypeFromReturnDirectArrayRector 6 days ago
Your Name 9fde74082a add type to function 6 days ago
Your Name 744e453606 feat: add admin:fixPostCounts to resync post like/boost/comment counts
Add a FixPostCounts command mirroring admin:fixProfileCounts (single-id,
--all --scope, --active, --type, --dry-run, --force). It reconciles the
statuses likes_count, reblogs_count, and reply_count columns against
source-of-truth tables.

Add canonical recompute helpers and reconcileStatusCounts() to
StatusService (mirroring AccountStatService), busting the status cache
only when a column actually drifted.
4 weeks ago
Your Name e7b70c6084 refactor: extract duplicate patterns into shared methods
1. Add FractalService with static item() and collection() helpers
   replacing 22 call sites that repeated the 4-line Fractal Manager
   + ArraySerializer boilerplate.

2. Add AccountInterstitial::createFromStatus() factory method
   consolidating 4 identical 15-line blocks that create interstitials
   with status metadata.

3. Add NotificationService::createNotification() to handle the
   repeated pattern of creating, caching, and registering a
   notification in the recipient's feed.

4. Add NotificationService::firstOrCreateNotification() for
   idempotent notifications (share/boost, mention) that should
   only notify once per actor+action+item combination.
4 weeks ago
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks ago
Daniel Supernault 33dce75f2c
Pint app/ 4 weeks ago
dansup ec38262338
Merge pull request #6576 from shleeable/covidremove
Clean up Covid/WHO
1 month ago
Daniel Supernault a2be0cb47d
Update CommentController 1 month ago
Your Name 6f643e02df Remove dead label field from status API response
The label key was only used for COVID labels which are now removed.
Drop it from both transformers and the StatusService unset list.
5 months ago
Daniel Supernault 2f655d0008
Fix pinned posts implementation 1 year ago
Felipe Mateus cce4c41d97
pinned posts 2 years ago
Daniel Supernault 79039ba595
Update StatusStatelessTransformer, refactor the caption field to be compliant with the MastoAPI. Fixes #5364 2 years ago
Daniel Supernault 56c07b7abd
Update StatusService.php 2 years ago
Daniel Supernault 0539018f11
Update StatusService 2 years ago
Daniel Supernault 4f2b8ed20a
Refactor total local post count logic, cache value and schedule updates twice daily to eliminate the perf issue on larger instances 2 years ago
Daniel Supernault 6e0d1ef41b
Update cache 2 years ago
Daniel Supernault d969a97360
Update Status model, improve thumb logic 3 years ago
Daniel Supernault 61d235b797
Update StatusService, fix logic check 3 years ago
Daniel Supernault 223661ecb2
Update StatusService, hydrate accounts on request instead of caching them along with status objects 3 years ago
Daniel Supernault 59b643789f
Update StatusService, reduce cache ttl from 7 days to 6 hours 3 years ago
Daniel Supernault 4d8b4dcf35
Update StatusService, fix bug in getFull method 3 years ago
Daniel Supernault f48daab37e
Update StatusService, fix missing account condition 3 years ago
Daniel Supernault 18940cb209
Update StatusService, on purge remove from NetworkTimelineService cache 4 years ago
Daniel Supernault 63f723decb
Update StatusService 4 years ago
Daniel Supernault 492b92140a
Update DeleteAccountPipeline 4 years ago
Daniel Supernault cc6b78c436
Update StatusService 4 years ago
Rm Yakovenko 72da667305 #3288 Fix: Undefined index: replies_count
https://github.com/pixelfed/pixelfed/issues/3288
5 years ago
Daniel Supernault 6cfd6be523
Add ReblogService, improve reblogged state for api entities 5 years ago
Daniel Supernault a7d715517d
Update StatusService, use BookmarkService for bookmarked state 5 years ago
Daniel Supernault eeaf0f9311
Update StatusService 5 years ago
Daniel Supernault 46485426ea
Update ApiV1Controller, add mastoapi strict mode 5 years ago
Daniel Supernault 454b4e21dd
Update Services, fix mastoapi compat 5 years ago
Daniel Supernault 36a129fe89
Update StatusService, add getMastodon method for mastoapi compatibility 5 years ago
Daniel Supernault 937cdfb7f9
Update StatusService 5 years ago
Daniel Supernault 83b48b5681
Update StatusService, improve cache invalidation 5 years ago
Daniel Supernault f88b3a2fb9
Update StatusService, add getDirectMessage method 5 years ago
Daniel Supernault 192553ff77
Update public timeline api, add experimental cache 5 years ago
Daniel Supernault e5454620e6
Update HomeTimeline api 5 years ago
Daniel Supernault 9e630851a3
Update AccountService, fix status bug 5 years ago
Daniel Supernault ef8e38298f
Update StatusService 5 years ago
Daniel Supernault acaf630dee
Update StatusService, invalidate profile embed cache on deletion 5 years ago
Daniel Supernault 3f8acb1266
Update AccountService, add syncPostCount method 5 years ago
Daniel Supernault 15c4fdd90c
Update StatusService, add non-public option and improve cache invalidation 5 years ago
Daniel Supernault 918016a5ad
Update PublicTimelineService 5 years ago
Daniel Supernault 6e44ae0b64
Update StatusService, add ttl of 7 days 6 years ago
Daniel Supernault 0fbde91e87
Update StatusService, cast response to array 6 years ago
Daniel Supernault 1ea2db74b2
Update StatusService, fix json bug 6 years ago
Daniel Supernault 425ec918ae
Add StatusService 7 years ago