Commit Graph

109 Commits (49b182cd5134f45ca825ae62d869bbb28d3c9266)

Author SHA1 Message Date
ThibG c39183cc62 Refactor active_nav_class for use with multiple paths ()
ThibG c946ba3fae Add rel=me to moved accounts' link ()
Eugen Rochko f4d549d300
Redesign forms, verify link ownership with rel="me" ()
* Verify link ownership with rel="me"

* Add explanation about verification to UI

* Perform link verifications

* Add click-to-copy widget for verification HTML

* Redesign edit profile page

* Redesign forms

* Improve responsive design of settings pages

* Restore landing page sign-up form

* Fix typo

* Support <link> tags, add spec

* Fix links not being verified on first discovery and passive updates
ThibG f8b54d229f Fix “Toots” tab highlighting for replies and media timelines ()
Renato "Lond" Cerqueira 7607f4778b Use animation config for avatar in profile pages ()
Fixes .
M Somerville 1bfe735d57 Inactive header in main profile to match column. ()
M Somerville b31449cd77 Better singulars of account followers/toots. ()
Tad Thorley 104d089df1 Update _bio.html.haml ()
On my local instance (https://ruby.social) we have a custom emoji for octocat (:octocat:). I would love to be able to use the emoji in the metadata for my profile. Instead of:

| github | https://github.com/phaedryx

It could be:

| :octocat: | https://github.com/phaedryx

(using a single emoji makes it easier to read the urls)
Eugen Rochko aaac14b8ad
Show exact number of followers/statuses on export page/in tooltip ()
* Show exact number of followers/statuses on export page/in tooltip

* Fix tests
Eugen Rochko f2404de871
Public profile endorsements (accounts picked by profile owner) ()
ThibG dad8a1baf2 Render custom emoji in display name on public profile ()
Eugen Rochko bb71538bb5
Redesign public profiles and toots ()
Eugen Rochko 9b9e96eae5
Add "Edit profile" link to public profile page, increase bottom padding ()
Eugen Rochko 1e02dc8715
Add preference to hide following/followers lists ()
* Add preference to hide following/followers lists

- Public pages
- ActivityPub collections (does not return pages but does give total)
- REST API (unless it's your own) (does not federate)

Fix 

* Add preference

* Add delegation

* Fix issue

* Fix issue
Yamagishi Kazutoshi 0a7e8320b2 Add alternate for RSS ()
Eugen Rochko 42cd363542
Bot nameplates ()
* Store actor type in database

* Add bot nameplate to web UI, add setting to preferences, API, AP
Fix 

* Fix code style issues
Eugen Rochko 61a9018607
Enable custom emojis in profiles (notes, field values, display names) ()
Follow-up to 
Eugen Rochko 2ef9d65052
Improve rendering of bio fields ()
Fix 
ThibG 1c379b7ef4 Remove extra spaces from search API queries and public account headers (fixes ) ()
Eugen Rochko 78ed4ab75f
Add bio fields ()
* Add bio fields

- Fix 
- Fix 
- Fix 

* Display bio fields in web UI

* Fix output of links and missing fields

* Federate bio fields over ActivityPub as PropertyValue

* Improve how the fields are stored, add to Edit profile form

* Add rel=me to links in fields

Fix 
ThibG 1364e9e4ae Fix follow/unfollow buttons on public profile (fixes ) ()
* Fix follow/unfollow buttons on public profile

- Present non-logged users with web+mastodon:// URLs for remote accounts
- Present logged-in users with appropriate links (authorize_follows and
  remote_unfollows) for remote accounts

* Do not cache rendered cards if user is logged in
David Underwood 123a343d11 [WIP] Enable custom emoji on account pages and in the sidebar ()
Federate custom emojis with accounts
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
Eugen Rochko 18513a978a
Improve public account cards ()
- Add follow/unfollow/remote follow buttons
- Format the bio properly
- Always show username@domain, even for local accounts
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 dbda87c31f
Revert ()
Akihiko Odaki 161c72d66d Allow to dereference Follow object for ActivityPub ()
* Allow to dereference Follow object for ActivityPub

* Accept IRI as object representation for Accept activity
Yamagishi Kazutoshi bfdcf76a64 Add “staff” badge to admin user pages ()
* Allow staff badge to change from setting to hidden

* i18n: Update Polish translation
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 2151fd3150
Display moderator badge (green), admin badge changed to red ()
Eugen Rochko 1032f3994f
Add ability to disable login and mark accounts as memorial ()
Fix 
Yamagishi Kazutoshi 9e0985d9e4 Add `strip_insignificant_zeros: true` option to `number_to_human` ()
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 15093f9113 Shorten display of large numbers on public 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 8c45cd0e36 Improve ActivityPub representations ()
* Improve webfinger templates and make tests more flexible

* Clean up AS2 representation of actor

* Refactor outbox

* Create activities representation

* Add representations of followers/following collections, do not redirect /users/:username route if format is empty

* Remove unused translations

* ActivityPub endpoint for single statuses, add ActivityPub::TagManager for better
URL/URI generation

* Add ActivityPub::TagManager#to

* Represent all attachments as Document instead of Image/Video specifically
(Because for remote ones we may not know for sure)

Add mentions and hashtags representation to AP notes

* Add AP-resolvable hashtag URIs

* Use ActiveModelSerializers for ActivityPub

* Clean up unused translations

* Separate route for object and activity

* Adjust cc/to matrices

* Add to/cc to activities, ensure announce activity embeds target status and
not the wrapper status, add "id" to all collections
Eugen Rochko c42092ba7a Add option to opt out of search engines on public profile/status pages ()
Shunsuke Michii 89210781cb Fix og:url. ()
yhirano 48594b18e6 Added haml-lint and fix warnings ()
* add haml_lint to Gemfile

* add .haml-lint.yml

* fix warnings of haml_lint
alpaca-tc ddc34feb58 Optimize follower_accounts and following_accounts ()
Evan Minto 66fd8e7821 ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities ()
* Clean up collapsible components

* Expose user Outboxes and AS2 representations of statuses

* Save work thus far.

* Fix bad merge.

* Save my work

* Clean up pagination.

* First test working.

* Add tests.

* Add Forbidden error template.

* Revert yarn.lock changes.

* Fix code style deviations and use localized instead of hardcoded English text.
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
Matt Jankowski 708bdd53f1 Remove unused view files in accounts/ ()
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 8bac0350d1 Restful refactor of accounts/ routes ()
* Add routing specs for accounts followers and following actions

* Use more restful route naming for public account follow pages

Moves two actions:
- accounts#followers to accounts/follower_accounts#index
- accounts#following to accounts/following_accounts#index

Adds routing spec to ensure prior URLs are preserved.
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