Commit Graph

242 Commits (53b22d247fb8500ea977774d727fe0d41950189c)

Author SHA1 Message Date
OSAMU SATO 96761752ec
Add duration parameter to muting. ()
* Adding duration to muting.

* Remove useless checks
ThibG 78e45a5285
Add option to disable swiping motions across the WebUI ()
Fixes 
Eugen Rochko 974b1b79ce
Add option to be notified when a followed user posts ()
* Add bell button

Fix 

* Remove duplicate type from post-deployment migration

* Fix legacy class type mappings

* Improve query performance with better index

* Fix validation

* Remove redundant index from notifications
Eugen Rochko e6b272e5c9
Change REST API to return empty data for suspended accounts ()
ThibG abee40b232
Add outbox attribute to instance actor ()
It's not useful for now, but it's required by ActivityPub
Takeshi Umeda 33ad850c98
Added account featured tags API ()
Eugen Rochko 17340365bb
Add featured hashtags as an ActivityPub collection ()
ThibG 79305428a7
Add configuration option to filter replies in lists ()
* Add database support for list show-reply preferences

* Add backend support to read and update list-specific show_replies settings

* Add basic UI to set list replies setting

* Add specs for list replies policy

* Switch "cycling" reply policy link to a set of radio inputs

* Capitalize replies_policy strings

* Change radio button design to be consistent with that of the directory explorer
Takeshi Umeda 47931db1f5
Add thumbnail_remote_url in MediaAttachment REST response ()
* Add thumbnail_remote_url in MediaAttachment REST response

* Change thumbnail_remote_url to preview_remote_url
Eugen Rochko c3187411c2
Change design of account notes in web UI ()
* Change design of account notes in web UI

* Fix `for` -> `htmlFor`
ThibG 65506bac3f
Add user notes on accounts ()
* Add UserNote model

* Add UI for user notes

* Put comment in relationships entity

* Add API to create user notes

* Copy user notes to new account when receiving a Move activity

* Address some of the review remarks

* Replace modal by inline edition

* Please CodeClimate

* Button design changes

* Change design again

* Cancel note edition when pressing Escape

* Fixes

* Tweak design again

* Move “Add note” item, and allow users to add notes to themselves

* Rename UserNote into AccountNote, rename “comment” Relationship attribute to “note”
Eugen Rochko 64aac30733
Add customizable thumbnails for audio and video attachments ()
- Change audio files to not be stripped of metadata
- Automatically extract cover art from audio if it exists
- Add `thumbnail` parameter to `POST /api/v1/media`, `POST /api/v2/media` and `PUT /api/v1/media/:id`
- Add `icon` to represent it in attachments in ActivityPub
- Fix `preview_url` containing URL of missing missing image when there is no thumbnail instead of null
- Fix duration of audio not being displayed on public pages until the file is loaded
Takeshi Umeda 13f065da05
Add visibility parameter in share page ()
* Add visibility parameter in share page

* Restrict to default privacy
ThibG 346d9b3d2e
Add blurhash to preview cards ()
Fixes 
ThibG aed3a436a2
Fix serialization of replies when some of them are URIs ()
* Fix serialization of replies when some of them are URIs

Fixes 

* Add test
Eugen Rochko f669b8bcce
Fix wrong route helper in encrypted messages controller ()
And add `created_at` to encrypted message serializer
Eugen Rochko 5d8398c8b8
Add E2EE API ()
ThibG a4240fd027
Improve RSS entries for statuses ()
* Improve RSS entries for statuses

- Render polls in both accounts and tags serializers
- Refactor RSS serializers
- Change title preview to include ellipsis when truncated
- Change title preview to show CW instead of toot text
- Add tests

* Remove title from OEmbed serialization

Twitter doesn't serialize title either, and tihs allows us to move the
title formatting code to the RSS serializers.
ThibG b40d68cc31
Add `invites_enabled` to API ()
Eugen Rochko 9660aa4543
Change local media attachments to perform heavy processing asynchronously ()
Fix 
ThibG aa67036b41
Add support for links to statuses in announcements to be opened in web UI ()
* Add support for links to public statuses in announcements to be opened in WebUI

* Please CodeClimate
Eugen Rochko 92e7c84969
Fix punycode being returned in some entities instead of unicode in REST API ()
ThibG 3adc722d1c
Change how unread announcements are handled ()
* Change meaning of /api/v1/announcements/:id/dismiss to mark an announcement as read

* Change how unread announcements are counted in UI

* Add unread marker to announcements and mark announcements as unread as they are displayed

* Fixups
ThibG 42d2a915e4 Change last_status_at to be a date, not datetime ()
* Return last_status_at as date, not datetime

* Fix relative timestamp for dates when delay is inferior to 1 day

* Also fix public directory

* Fix error when last_status_at isn't set
Eugen Rochko b9d74d4076
Add streaming API updates for announcements being modified or deleted ()
Change `all_day` to be a visual client-side cue only

Publish immediately if `scheduled_at` is in the past

Add `published_at` and `updated_at` to announcements JSON
Eugen Rochko f52c988e12
Add announcements ()
* Add announcements

Fix 

* Add reactions to announcements

* Add admin UI for announcements

* Add unit tests

* Fix issues

- Add `with_dismissed` param to announcements API
- Fix end date not being formatted when time range is given
- Fix announcement delete causing reactions to send streaming updates
- Fix announcements container growing too wide and mascot too small
- Fix `all_day` being settable when no time range is given
- Change text "Update" to "Announcement"

* Fix scheduler unpublishing announcements before they are due

* Fix filter params not being passed to announcements filter
Eugen Rochko f86ee4b59f
Fix IDN mentions not being processed, IDN domains not being rendered ()
This changes the REST API to return unicode domains in the `acct`
attribute instead of punycode, and to render unicode instead of
punycode on public HTML pages as well.

Fix , fix 
Takeshi Umeda f43f1e0184 Add basic support for group actors ()
* Show badge on group actor in WebUI

* Do not notify in case of  by following group actor

* If you mention group actor, also mention group actor followers

* Relax characters that can be used in username (same as Application)

* Revert "Relax characters that can be used in username (same as Application)"

This reverts commit 7e10a137b8.

* Delete display_name method
trwnh 4354936a39 Return `discoverable` via REST API (fix ) ()
Eugen Rochko 07da35c17c
Fix n+1 query for bookmarks on statuses ()
ThibG dfea7368c9 Add bookmarks ()
* Add backend support for bookmarks

Bookmarks behave like favourites, except they aren't shared with other
users and do not have an associated counter.

* Add spec for bookmark endpoints

* Add front-end support for bookmarks

* Introduce OAuth scopes for bookmarks

* Add bookmarks to archive takeout

* Fix migration

* Coding style fixes

* Fix rebase issue

* Update bookmarked_statuses to latest UI changes

* Update bookmark actions to properly reflect status changes in state

* Add bookmarks item to single-column layout

* Make active bookmarks red
Faye Duxovni 48f75b86ae Add setting for whether to crop images in unexpanded toots ()
Takeshi Umeda a6269b2f83 Split AccountsHelper from StatusesHelper ()
Eugen Rochko 4e1afef6f9
Add `openRegistrations` attribute to nodeinfo endpoint ()
ThibG 3babf8464b Add voters count support ()
* Add voters count to polls

* Add ActivityPub serialization and parsing of voters count

* Add support for voters count in WebUI

* Move incrementation of voters count out of redis lock

* Reword “voters” to “people”
Eugen Rochko 5f69eb89e2
Add a nodeinfo endpoint ()
* Add nodeinfo endpoint

* dont commit stuff from my local dev

* consistant naming since we implimented 2.1 schema

* Add some additional node info stuff

* Add nodeinfo endpoint

* dont commit stuff from my local dev

* consistant naming since we implimented 2.1 schema

* expanding this to include federation info

* codeclimate feedback

* CC feedback

* using activeserializers seems like a good idea...

* get rid of draft 2.1 version

* Reimplement 2.1, also fix metaData -> metadata

* Fix metaData -> metadata here too

* Fix nodeinfo 2.1 tests

* Implement cache for monthly user aggregate

* Useless

* Remove ostatus from the list of supported protocols

* Fix nodeinfo's open_registration reading obsolete setting variable

* Only serialize domain blocks with user-facing limitations

* Do not needlessly list noop severity in nodeinfo

* Only serialize domain blocks info in nodeinfo when they are set to be displayed to everyone

* Enable caching for nodeinfo endpoints

* Fix rendering nodeinfo

* CodeClimate fixes

* Please CodeClimate

* Change InstancePresenter#active_user_count_months for clarity

* Refactor NodeInfoSerializer#metadata

* Remove nodeinfo 2.1 support as the schema doesn't exist

* Clean-up
ThibG 18b451c0e6 Change silences to always require approval on follow ()
* Change silenced accounts to require approval on follow

* Also require approval for follows by people explicitly muted by target accounts

* Do not auto-accept silenced or muted accounts when switching from locked to unlocked

* Add `follow_requests_count` to verify_credentials

* Show “Follow requests” menu item if needed even if account is locked

* Add tests

* Correctly reflect that follow requests weren't auto-accepted when local account is silenced

* Accept follow requests from user-muted accounts to avoid leaking mutes
ThibG b359974d9b Show user what options they have voted ()
* Add own_votes field to poll results in REST API

Fixes 

* Display user votes in WebUI

* Update styling

* Add vote checkmark to public pages
Eugen Rochko 3ed94dcc1a
Add account migration UI ()
Fix 

- Change data export to be available for non-functional accounts
- Change non-functional accounts to include redirecting accounts
tsia 5ded2de3a0 fix rss enclosure length ()
Eugen Rochko 18331fefa2
Remove deprecated `GET /api/v1/search` API ()
Use `GET /api/v2/search` instead
Takeshi Umeda 9c9dcf580a Add featured tags API ()
* Add featured tags API

* Remove show and update, change scope, fix code style
Eugen Rochko e445a8af64
Add timeline read markers API ()
Fix 
Yamagishi Kazutoshi cf643d0060 Add method and enctype to manifest ()
ThibG 692c5b439a Fix ActivityPub context not being dynamically computed ()
* Fix contexts not being dynamically included

Fixes 

* Refactor Note context in serializer

* Refactor Actor serializer
Eugen Rochko cb447b28c4
Add profile directory to web UI ()
* Add profile directory to web UI

* Add a line of bio to the directory
Takeshi Umeda 9e1d28f48e Add an RSS feed tagged to a public profile page ()
* Add featured tag support to rss feed on public account page

* fix codeing style
ThibG 53071389ee Fix multiple issues with replies collection for pages further than self-replies ()
* Fix the replies collection returning snowflakes ids rather than URIs

Fixes 

* Fix min_id in replies queries once self-replies are exhausted

* Fix `next` attribute of replies collection being nil when there are no self-replies

* Rename other_accounts param to only_other_accounts
Eugen Rochko e5cee8062f
Fix blurhash and autoplay not working on public pages ()
Eugen Rochko c09ecbc53e
Add indicator of unread content to window title when web UI is out of focus ()
Fix