Commit Graph

42 Commits (80176a3814abad7f5c9023f97b5d4d82b73c089d)

Author SHA1 Message Date
Eugen Rochko bb71538bb5
Redesign public profiles and toots ()
Yamagishi Kazutoshi 0a7e8320b2 Add alternate for RSS ()
Eugen Rochko a568e3ca8e
Revert , hide sensitive text/images from OpenGraph previews ()
Display summary of attachments in description, and mark up content
warning if present, e.g.:

    Attached: 3 images · Content warning: Dota 2

When text is not supposed to be hidden, it looks more like:

    Attached: 3 images

    Here is the text of the toot

With , multilinguagility should be assured...
Eugen Rochko ff44b2e92d
Add missing meta description to profiles, some other SEO stuff ()
- Add missing meta description to profiles
- Add canonical rel link to landing page
- Remove linebreaks from title tags
- Add username to profile title
- Add toots/following/followers to profile description tags
- Add next/prev rel links to profiles
- Do not index follower/following variants of profiles
Ian McCowan c33931b613 Fix prev/next links on public profile page ()
* Fix prev/next links on public profile page

* Don't make pagination urls if no available statuses

* Fix empty check method

* Put left chevron before prev page link

* Add scope for pagination "starting at" a given id

* Status pagination try 2:

s/prev/older and s/next/newer
"older" on left, "newer" on right
Use new scope for "newer" link
Extract magic 20 page size to constant
Remove max_id from feed pagination as it's not respected

* Reinstate max_id for accounts atom stream

* normalize
Eugen Rochko 58cede4808
Profile redirect notes ()
* Serialize moved accounts into REST and ActivityPub APIs

* Parse federated moved accounts from ActivityPub

* Add note about moved accounts to public profiles

* Add moved account message to web UI

* Fix code style issues
Eugen Rochko 1032f3994f
Add ability to disable login and mark accounts as memorial ()
Fix 
Eugen Rochko 8f8e677630 Clean up and improve generated OpenGraph tags ()
- Return all images as og:image
- Return videos as og:image (preview) and og:video
- Return profile:username on profiles
Eugen Rochko 9caa90025f Pinned statuses ()
* Pinned statuses

* yarn manage:translations
Eugen Rochko ca7ea1aba9 Redesign public profiles ()
* Redesign public profiles

* Responsive design

* Change public profile status filtering defaults and add options

- No longer displays private/direct toots even if you are permitted access
- By default omits replies
- "With replies" option
- "Media only" option

* Redesign account grid cards

* Fix style issues
Eugen Rochko a2aeacbfee Add alternate links to ActivityPub resources from HTML/HEAD variants ()
Eugen Rochko 1306d637a2 Fix oddities with public profile CSS ()
* Fix oddities with public profile CSS

* Remove trailing whitespace
Eugen Rochko c42092ba7a Add option to opt out of search engines on public profile/status pages ()
Shunsuke Michii 89210781cb Fix og:url. ()
Wesley Ellis a1174a6d7e Add og:url tags ()
* add og:url to stream_item view

* add og:url and text to about/show

* add og:url to profile, followers and follows pages
Yamagishi Kazutoshi 2510119f19 Add meta tags for OGP to following & follow page ()
* Add meta tags for OGP to following & follow page

* simplify render helper

* Follow up 

* og:type is only accounts/show

* revert accounts/{following,followers}
Matt Jankowski 84b5fae8e3 Simplify renders in views ()
* Simplify render in mailer views

* Simplify render in about/more view

* Simplify render in accounts follow views

* Simplify render in recovery code views

* Simplify render in stream entry embed

* Simplify render in stream entries status partial

* Simplify render in authorize follow new view
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 7efde22c3a Use local vars in partials ()
* Use local vars in accounts/header partial

* Use local variable in 2fa recovery codes partial
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
Marcin Cieślak 1c8477eab2 Give SINGLE_USER a chance to register ()
An attempt to open a brand new Mastodon instance configured
as SINGLE_USER_MODE=true will cause an exception.

Enable temporary registration if we have no users in the database

Fixes 
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 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 99ca63a543 Fix public profile pagination links
Eugen Rochko 6b1db5c2b2 Add landing strip
Eugen Rochko 72c3a41bef Fix h-card classes and remote follow button appearing when it shouldn't
Greg V 18deeb9db5 Add Microformats2 markup
h-feed, h-card and h-entry
Effy Elden 819bfb75c6 Add twitter:card metatag to enable Twitter Cards support
Eugen Rochko 6c60757e99 Improve images in opengraph meta tags
Eugen Rochko c8e0ceed56 Fix OpenGraph meta tags
Eugen Rochko 5abf64d647 Add "next" pagination to public profiles
Eugen Rochko 1d0321fc45 Fix pt translations, improve pre-cache queries, removing will_paginate
from accounts/tags because it's a terribly inefficient way to paginate
large sets of data
Eugen Rochko ca3b364aea Fix - Add microformats-2 classes to mention links
Eugen Rochko 0160d1d9b5 Enable caching for some rabl views
Eugen Rochko 57583f3fb8 Improve partial rendering and Haml performance (Haml->Hamlit)
Eugen Rochko 02696a063e Change default avatar, redirect to home after sign up
Eugen Rochko 71ae4dd3d2 Adding public following and followers pages, fix
Eugen Rochko c349200761 Removing some unused gems, adding pagination to profiles, fix
Eugen Rochko 3441361568 Adding simple_form, adding profile settings, header image
Eugen Rochko aab330eb2d Adjusting design of public pages, optimizing account page queries
Eugen Rochko ab80ebdeec Adjusting design of profile and entry pages, linkify mentions in statuses
Eugen Rochko 0e8f59c16f Refactoring Grape API methods into normal controllers & other things