Commit Graph

51 Commits (27ea2a88c12835b491ea5537f934983470faf781)

Author SHA1 Message Date
Matt Jankowski 389f8f8249 Instance helper to replace site title helper ()
* Move site title helper to instance helper (name change only)

* Remove newline in <title> tag

* Add site_hostname helper method to wrap up local_domain value

* Use site_hostname helper in places that need local_domain value
Matt Jankowski 3834e1e69b View spec fix ()
* Add option to disable verify partial doubles

* Add show_landing_strip? helper method

* Use show_landing_strip? helper in accounts and stream entries views

* Fix naming in view specs
Matt Jankowski 09540192c9 Rename admin/accounts_helper to admin/filter_helper ()
- Add some spec coverage for both methods
- Add explicit constant call-outs for where the params are from
Matt Jankowski f24daa399b Remove pending specs for methods that dont exist ()
* Remote spec for non-existent entry_classes helper method

This method no longer exists, and is handled by a local variable in a partial
instead.

* Remove spec for non-existent Account#ping! method
Matt Jankowski e60286a344 Remove unused methods from StreamEntriesHelper ()
Removes:

- avatar_for_status_url
- relative_time
- reblogged_by_me_class
- favourited_by_me_class
Matt Jankowski 53850bce93 Remove unused AtomBuilderHelper ()
This was used in the views/atom/user_stream.xml.ruby file, which no longer is
used.
Matt Jankowski 4ada50985a Pagination improvements ()
* Replace will_paginate with kaminari

* Use #page instead of #paginate in controllers

* Replace will_paginate.page_gap with pagination.truncate in i18n

* Customize kaminari views to match prior styles

* Set kaminari options to match prior behavior

* Replace will_paginate with paginate in views
Matt Jankowski ea6c930c04 Helper cleanup ()
* Remove unused helper files

* Add coverage for application helper

* Add coverage for StreamEntriesHelper #display_name
Matt Jankowski ca44c13455 Use Setting.site_title value for `og:site_name` occurrences ()
* Add helper method to return Setting.site_title

* Use site_title helper in application layout

* Use site_title value for og:site_name
Eugen Rochko 149887a0ff Make follow requests federate
Eugen Rochko 49834a6e7f Add API for retrieving blocked accounts
Eugen Rochko d7dc84439c Add ability to use remote follow function on other sites
Eugen Rochko 3689c119f0 Replacing follow requests in the settings area with in-UI column
Eugen Rochko 004382e4d0 Adding follow requests API
Eugen Rochko b302b9202b Add page for authorizing/rejecting follow requests
Eugen Rochko 76ec907993 Improved admin UI
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)
Eugen Rochko 6ff93845d5 Add basic OEmbed provider API, fix
Eugen Rochko 14bd46946d Per-status control for unlisted mode, also federation for unlisted mode
Fix , fix 
Eugen Rochko 356d3874eb Normalize localizations, add stub for admin/accounts
Eugen Rochko 27fc49d745 Add simple admin overview of PuSH subscriptions
Eugen Rochko 48b9619439 Adding hashtags
Eugen Rochko 7a6d95f70c E-mail preferences page
Eugen Rochko e63aebff7a Adding landing page
Eugen Rochko 4f9b7432dd Fix - Add API versioning (v1)
Eugen Rochko 7e14eefc81 Replace logo, fix - delete/unreblog/unfavourite API, fix - app
registration API
Eugen Rochko 3cc47beb6e Refactored generation of unique tags, URIs and object URLs into own classes,
as well as formatting of content
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
Eugen Rochko a4cc966476 Removing default avatars
Eugen Rochko 1d9c886518 Adding enclosures to Atom and statuses JSON
Eugen Rochko eec0dc46a6 PostStatusService can attach media to status, ProcessFeedService likewise
Eugen Rochko ae1fac0062 Add API to upload media attachments
Eugen Rochko 1022d682dc Normalized data in Redux, fix for asset URLs when rendered outside request
Eugen Rochko 039e6f951c Fix issue with unresolvable usernames
Eugen Rochko a08e724476 Fix subscriptions:clear task, refactor feeds, refactor streamable activites
and atom feed generation to some extent, as well as the way mentions are
stored
Eugen Rochko f14f462eaf Adding Turbolinks, adding status posting form on homepage
Eugen Rochko 9d55529318 Fix text color in dashboard inputs, sanitize remote status content in UI,
simplify FanOutOnWriteService, add /api/accounts/lookup method
Eugen Rochko 253ab26520 Adding more tests for helpers
Eugen Rochko c349200761 Removing some unused gems, adding pagination to profiles, fix
Eugen Rochko 071f64d317 Fix , Atom feeds now contain formatted post content
Eugen Rochko 7837afbb5f Removing autogenerated test stubs that were not needed
Eugen Rochko 6fec8afc3f Bind oauth applications to users
Eugen Rochko 3441361568 Adding simple_form, adding profile settings, header image
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.
Eugen Rochko 23d08c6749 Changing the use of config constants to the Rails configuration object
Eugen Rochko 0e8f59c16f Refactoring Grape API methods into normal controllers & other things
Eugen Rochko 47d50b0e39 A lot of fixes from a live test
Eugen Rochko ad5ae3f60e Update profile information and download avatar of remote accounts
Eugen Rochko f16b31f077 Adding a bunch of tests
Eugen Rochko 71fe24096c Adding a Mention model, test stubs