Commit Graph

13 Commits (dev)

Author SHA1 Message Date
Your Name a56c1fb019 fix(mentions): allow long usernames in autolinking (#7204)
Raise the mention regex local-part cap from 20 to 64 chars. The prior cap
silently dropped long usernames from autolinking/mentions, and for remote
handles it truncated the username and dropped the @domain, turning a remote
mention into a broken local one. Adds extensive lexer coverage.
1 week 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
Your Name de3375a9f9 Apply Pint formatting to tests/ 4 weeks ago
Ross Bearman 3bef8a349f Make test URLs environment-agnostic
Alter link generation tests to use `config('app.url')`, rather than hardcoding `https://pixelfed.dev`
1 year ago
Daniel Simon 92f615d469 remove test prefix from test method names 2 years ago
Daniel Simon f39bfcfa1d replace @test annotations with #[Test] attributes, and add it where it was missing 2 years ago
Daniel Supernault d4f92da0e5
Fix test 3 years ago
Sven Luijten 13d359a3c5
Clean up styling in the tests 4 years ago
Daniel Supernault 46a498d7a9
Update StatusLexerTest 7 years ago
Daniel Supernault 52b5eab9b7
Update Autolinker test 7 years ago
Daniel Supernault 78ccec53e0
Update StatusLexerTest 7 years ago
Daniel Supernault 0c654f5e43
Update tests 8 years ago
Daniel Supernault 127990e95f
Add Status Lexer Test 8 years ago