Matt Jankowski
c44a700252
Quick best practice cleanup of views/helpers ( #1546 )
...
* Remove trailing whitespace
* Use query methods instead of explicit .blank? checks
8 years ago
Matt Jankowski
dd1ae3b109
Simplify the way the embed view is created ( #1590 )
...
* Add coverage for embedded status view
* Refactor embed view to eliminate @external_links variable
8 years ago
Matt Jankowski
e60286a344
Remove unused methods from StreamEntriesHelper ( #1365 )
...
Removes:
- avatar_for_status_url
- relative_time
- reblogged_by_me_class
- favourited_by_me_class
8 years ago
Joël Quenneville
d4c94fa004
DRY up reblog vs original status check
...
Checking reblog vs original status was happening in multiple places
across the app. For views, this logic was encapsulated in a helper
method named `proper_status` but in the other layers of the app, the
logic was duplicated.
Because the logic is used at all layers of the app, we extracted it into
a `Status#proper` method on the model and changed all uses of the logic
to use this method. There is now a single source of truth for this
condition.
We added test coverage to untested methods that got refactored.
8 years ago
Eugen Rochko
d180aaa2a7
Fix #186 - Add RTL support to the compose form textarea and statuses output
8 years ago
Eugen Rochko
1bfbce7b45
Clean up h-card mess of divs
8 years ago
Eugen Rochko
49834a6e7f
Add API for retrieving blocked accounts
8 years ago
Eugen Rochko
5ae1b39ec9
Adjusting public display of statuses to look similar to logged-in UI,
...
fix #361 with rich OEmbed display via iframe, fix #237 by hiding sensitive
content behind a spoiler on public pages
8 years ago
Eugen Rochko
f763e844e8
Do not use expiring links after all
8 years ago
Eugen Rochko
24e692b0cf
Set a specific S3 expiration time so that files can be cached
8 years ago
Eugen Rochko
80c44ed9c1
Do not autoplay videos, display play button instead. Use expiring links when using S3. Do not keep originals
...
for avatars/headers, resize avatars down to 120x120 instead of 300x300. Set cache headers on S3 stuff, also
make it private (aka only accessible via expiring links to prevent hotlinking)
8 years ago
Eugen Rochko
ff21ff1489
Make User#current_sign_in_at actually track when user was last active,
...
by updating it at least every 24h if the user visits the site
8 years ago
Eugen Rochko
fdc17bea58
Fix rubocop issues, introduce usage of frozen literal to improve performance
8 years ago
Eugen Rochko
927333f4f8
Improve code style
8 years ago
Eugen Rochko
85d89b472d
Optimized n+1 queries in accounts Atom and HTML views
...
Added stack trace for SQL queries in development
Removed badly thought out accounts/lookup API
8 years ago
Eugen Rochko
882c94a6bf
Cleaning up status partial
9 years ago
Eugen Rochko
c8999a116e
Sanitize remote html in atom feeds, API (not just UI), use cached mention
...
relations on Status#mentions
9 years ago
Eugen Rochko
9d55529318
Fix text color in dashboard inputs, sanitize remote status content in UI,
...
simplify FanOutOnWriteService, add /api/accounts/lookup method
9 years ago
Eugen Rochko
071f64d317
Fix #13 , Atom feeds now contain formatted post content
9 years ago
Eugen Rochko
a9db42a956
Validations for local profiles
9 years ago
Eugen Rochko
447cfef62d
Improving feed queries, switching API to doorkeeper authentication
9 years ago
Eugen Rochko
ab6696e855
Adding doorkeeper, adding a REST API
...
POST /api/statuses Params: status (text contents), in_reply_to_id (optional)
GET /api/statuses/:id
POST /api/statuses/:id/reblog
GET /api/accounts/:id
GET /api/accounts/:id/following
GET /api/accounts/:id/followers
POST /api/accounts/:id/follow
POST /api/accounts/:id/unfollow
POST /api/follows Params: uri (e.g. user@domain)
OAuth authentication is currently disabled, but the API can be used with HTTP Auth.
9 years ago
Eugen Rochko
3824c58853
Adding GNU Public license, adding home timeline, reblog/favourite counters
9 years ago
Eugen Rochko
ab80ebdeec
Adjusting design of profile and entry pages, linkify mentions in statuses
9 years ago
Eugen Rochko
0e8f59c16f
Refactoring Grape API methods into normal controllers & other things
9 years ago
Eugen Rochko
47d50b0e39
A lot of fixes from a live test
9 years ago
Eugen Rochko
2825991e09
Improving status display design, including replies and threads
9 years ago
Eugen Rochko
2c70f0ecaa
Adding paperclip for avatars, fixing design of the public pages
9 years ago
Eugen Rochko
709c6685a9
Made some progress
9 years ago