Commit Graph

112 Commits (b800cdc26ac4c9250b8e99d87b7c380960f9d313)

Author SHA1 Message Date
Eugen Rochko 8331fdf7e0
Add server rules ()
trwnh 4950e59cdc
Use existing FeaturedTag serializer and delete AccountFeaturedTag serializer ()
* Update featured_tags_controller.rb

* Update featured_tag_serializer.rb

* Update featured_tag_serializer.rb

* Delete account_featured_tag_serializer.rb

* please codeclimate

* please codeclimate
Takeshi Umeda 17a2e27641
Fix remove number sign from account_featured_tags ()
Takeshi Umeda d6fe0c94ca
Add account sensitized ()
* Add account sensitized

* Fix i18n normalize

* Fix description and spec

* Fix spec

* Fix wording
OSAMU SATO 96761752ec
Add duration parameter to muting. ()
* Adding duration to muting.

* Remove useless checks
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 ()
Takeshi Umeda 33ad850c98
Added account featured tags API ()
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
ThibG 346d9b3d2e
Add blurhash to preview cards ()
Fixes 
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 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
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”
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 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 
Eugen Rochko cb447b28c4
Add profile directory to web UI ()
* Add profile directory to web UI

* Add a line of bio to the directory
Eugen Rochko 043d52f785
Fix `alerts` booleans not being typecast correctly in push subscription ()
* Fix `alerts` booleans not being typecast correctly in push subscription

Fix 

* Fix typo
Eugen Rochko b851456139
Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` ()
Eugen Rochko e64e6a03dd
Add categories for custom emojis ()
Fix 
Eugen Rochko d61d164685
Add `short_description` and `approval_required` to `GET /api/v1/instance` ()
Eugen Rochko 7696f77245
Add moderation API ()
Fix 
Fix 
ThibG 6d44f2441b Add toot source to delete result to ease Delete & Redraft ()
* Return Status with raw text in raw_content when deleting a status

* Use raw content if available on delete & redraft

* Rename raw_content to text; do not serialize formatted content when source is requested
Eugen Rochko fba96c808d
Add blurhash ()
* Add blurhash

* Use fallback color for spoiler when blurhash missing

* Federate the blurhash and accept it as long as it's at most 5x5

* Display unknown media attachments as blurhash placeholders

* Improve style of embed actions and spoiler button

* Change blurhash resolution from 3x3 to 4x4

* Improve dependency definitions

* Fix code style issues
Eugen Rochko 67b3b62b98
Improve blocked view of profiles ()
* Revert "Fix filtering of favourited_by, reblogged_by, followers and following ()"

This reverts commit 120544067f.

* Revert "Hide blocking accounts from blocked users ()"

This reverts commit 62bafa20a1.

* Improve blocked view of profiles

- Change "You are blocked" to "Profile unavailable"
- Hide following/followers in API when blocked
- Disable follow button and show "Profile unavailable" on public profile as well
ThibG 62bafa20a1 Hide blocking accounts from blocked users ()
* Revert "Add indication that you have been blocked in web UI ()"

This reverts commit bd02ec6daa.

* Revert "Add `blocked_by` relationship to the REST API ()"

This reverts commit 9745de883b.

* Hide blocking accounts from search results

* Filter blocking accouts from account followers

* Filter blocking accouts from account's following accounts

* Filter blocking accounts from “reblogged by” and “favourited by” lists

* Remove blocking account from URL search

* Return 410 on trying to fetch user data from a user who blocked us

* Return 410 in /api/v1/account/statuses for suspended or blocking accounts

* Fix status filtering when performing URL search

* Restore some React improvements

Restore some cleanup from bd02ec6daa

* Refactor by adding `without_blocking` scope
Alex Gessner 69141dca26 squashed identity proof updates ()
Eugen Rochko f1bc90ab50
Rename :poll to :preloadable_poll and :owned_poll to :poll on Status ()
Also, fix some n+1 queries

Resolve 
Eugen Rochko 9745de883b
Add `blocked_by` relationship to the REST API ()
ThibG 80f0910e21 Add support for custom emojis in poll options ()
* Backend changes for custom emoji support in poll options

* Serialize poll emojis in REST API

* Render custom emojis in poll options

* Render custom emoji in poll options on public pages
Yamagishi Kazutoshi 8347479f5d Bump webpacker from 3.5.5 to 4.0.2 ()
Bumps [webpacker](https://github.com/rails/webpacker) from 3.5.5 to 4.0.2.
- [Release notes](https://github.com/rails/webpacker/releases)
- [Changelog](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/webpacker/compare/v3.5.5...v4.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>