Commit graph

45 commits

Author SHA1 Message Date
KMY
a003c2db89 Merge remote-tracking branch 'parent/main' into upstream-20241107 2024-11-07 08:33:20 +09:00
Matt Jankowski
20a147170e
Remove unused usage method from REST::V1::InstanceSerializer (#32768) 2024-11-05 14:20:27 +00:00
KMY
206021455e Merge remote-tracking branch 'parent/main' into upstream-20240830 2024-08-30 08:17:34 +09:00
Matt Jankowski
662f87dbe9
Use MediaAttachment.supported_mime_types method where relevant (#31635) 2024-08-29 08:52:29 +00:00
KMY
e7ccc0539f Merge remote-tracking branch 'parent/main' into upstream-20240813 2024-08-13 07:01:38 +09:00
Claire
cbdd8edf68
Revamp notification policy options (#31343) 2024-08-09 13:30:55 +00:00
KMY
13ad383039 Merge remote-tracking branch 'parent/main' into upstream-20240531 2024-05-31 08:27:09 +09:00
Matt Jankowski
c61e356475
Add Status::MEDIA_ATTACHMENTS_LIMIT configuration constant (#30433) 2024-05-27 09:49:44 +00:00
KMY(雪あすか)
941705be62
Change: #621 登録時間帯制限で、制限時間中は登録を禁止ではなく承認制にする (#628)
* Change: #621 登録時間帯制限で、制限時間中は登録を禁止ではなく承認制にする

* 管理画面のUIを改善

* Fix test

* Fix lint
2024-03-04 12:38:56 +09:00
KMY(雪あすか)
8a29aef842
Add: #446 スタンプ上限の設定を、ローカルユーザー向けと外部サーバーユーザー向けのものに分ける (#553) 2024-02-15 12:53:11 +09:00
KMY(雪あすか)
e317edecb8
Add: #348 新規登録の上限人数 (#527)
* Add: #348 新規登録の上限人数

* Fix test

* Fix test

* Wip

* Fix test

* Add invite support

* Wip

* Fix test

* Fix test

* Fix test
2024-02-12 22:05:32 +09:00
KMY
2b51fabe9c Merge remote-tracking branch 'parent/main' into upstream-20240118 2024-01-18 09:17:39 +09:00
Renaud Chaput
cb5ac15923
Use a helper to avoid using media/ asset prefixes (#28756) 2024-01-17 12:19:51 +00:00
KMY(雪あすか)
fb6e125917
Change: #322 fedibird_capabilitiesからprofile_searchを削除 (#387)
* Change: #322 `fedibird_capabilities`から`profile_search`を削除

* v1にも追加
2023-12-26 09:48:03 +09:00
KMY
dd88cef84b #63 NodeInfoでのfedibird_capabilities公開 2023-10-06 18:59:10 +09:00
KMY
8eae7e6179 Add enable local public visibility setting for admin 2023-09-23 09:18:50 +09:00
KMY
35c2bb9f44 Remove emoji reaction from fedibird_capabilities and setting pages when disabled 2023-09-13 13:17:54 +09:00
KMY
21126fd18f Add kmyblue_capabilities 2023-09-12 20:03:11 +09:00
KMY
bd0e2bd796 Add capabilities 2023-08-26 16:15:48 +09:00
KMY
3c43f84cdb Fix full-dark theme 2023-08-21 19:04:56 +09:00
KMY
c090f21532 Add antenna to fedibird_capabilities 2023-08-20 11:47:41 +09:00
KMY
c1f6d22ad2 Add limited_scope support 2023-08-12 22:49:28 +09:00
KMY
79062bfc2f Add mutual visibility support 2023-08-12 18:22:22 +09:00
KMY
5a0483ed21 Add exclude_follows, exclude_localusers settings to custom_filter 2023-07-14 12:16:08 +09:00
KMY
22ad776635 Add status references support 2023-07-06 12:55:11 +09:00
KMY
ee72808c1f Add allow_image config 2023-05-30 09:54:30 +09:00
KMY
f93679566b Add reactiondeck limit variable and improve sql 2023-05-27 10:13:18 +09:00
KMY
b9dab37eac Change reactiondeck to draggable, add-removable 2023-05-26 20:42:36 +09:00
KMY
7e4d9a2d0d Change instance setting max_items to max_emojis 2023-05-26 17:33:47 +09:00
KMY
cf72dae0d0 Add login visibility to fedibird_capabilities 2023-05-26 15:29:50 +09:00
KMY
f1625fe101 Add reaction deck 2023-05-26 15:15:48 +09:00
KMY
1bcf3e8c0b Fix instance max_reactions property 2023-05-15 08:44:49 +09:00
KMY
5a638a9551 Add glitch-toc emoji_reaction support 2023-05-15 08:09:22 +09:00
KMY
de9e4b964c Fix searchability api to compat with fedibird 2023-05-14 14:12:35 +09:00
KMY
2a54b76823 Bump to media attachments max on poll (disabled now) 2023-05-12 15:47:40 +09:00
KMY
57c15e0d7f Remove extra media attachments and support raw array 2023-04-22 17:10:11 +09:00
KMY
a4e8dcc3c4 Fix api responses and add force_visibility 2023-04-13 09:53:24 +09:00
KMY
1502668ee5 Support 5 or more media_attachments from activitypub 2023-04-07 20:26:52 +09:00
KMY
47bedd20ca Move emoji reaction limitation constraints 2023-03-08 16:31:22 +09:00
KMY
d5b8351364 Add fedibird capabiliies support 2023-03-05 14:48:22 +09:00
KMY
5c5b42d42c Fix third party app emoji reaction feature 2023-02-27 20:17:25 +09:00
Takeshi Umeda
b0e3f0312c
Add synchronization of remote featured tags (#19380)
* Add LIMIT of featured tag to instance API response

* Add featured_tags_collection_url to Account

* Add synchronization of remote featured tags

* Deliver update activity when updating featured tag

* Remove featured_tags_collection_url

* Revert "Add featured_tags_collection_url to Account"

This reverts commit cff349fc27b104ded2df6bb5665132dc24dab09c.

* Add hashtag sync from featured collections

* Fix tag name normalize

* Add target option to fetch featured collection

* Refactor fetch_featured_tags_collection_service

* Add LIMIT of featured tag to v1/instance API response
2022-10-20 09:15:52 +02:00
Eugen Rochko
b04633a961
Add image processing and generate blurhash for server thumbnail (#19348)
Remove separate server hero setting
2022-10-13 11:29:19 +02:00
Eugen Rochko
d2528b26b6
Add server banner to web app, add GET /api/v2/instance to REST API (#19294) 2022-10-05 03:47:56 +02:00
Claire
02851848e9
Revamp post filtering system (#18058)
* Add model for custom filter keywords

* Use CustomFilterKeyword internally

Does not change the API

* Fix /filters/edit and /filters/new

* Add migration tests

* Remove whole_word column from custom_filters (covered by custom_filter_keywords)

* Redesign /filters

Instead of a list, present a card that displays more information and handles
multiple keywords per filter.

* Redesign /filters/new and /filters/edit to add and remove keywords

This adds a new gem dependency: cocoon, as well as a npm dependency:
cocoon-js-vanilla. Those are used to easily populate and remove form fields
from the user interface when manipulating multiple keyword filters at once.

* Add /api/v2/filters to edit filter with multiple keywords

Entities:
- `Filter`: `id`, `title`, `filter_action` (either `hide` or `warn`), `context`
  `keywords`
- `FilterKeyword`: `id`, `keyword`, `whole_word`

API endpoits:
- `GET /api/v2/filters` to list filters (including keywords)
- `POST /api/v2/filters` to create a new filter
  `keywords_attributes` can also be passed to create keywords in one request
- `GET /api/v2/filters/:id` to read a particular filter
- `PUT /api/v2/filters/:id` to update a new filter
  `keywords_attributes` can also be passed to edit, delete or add keywords in
   one request
- `DELETE /api/v2/filters/:id` to delete a particular filter
- `GET /api/v2/filters/:id/keywords` to list keywords for a filter
- `POST /api/v2/filters/:filter_id/keywords/:id` to add a new keyword to a
   filter
- `GET /api/v2/filter_keywords/:id` to read a particular keyword
- `PUT /api/v2/filter_keywords/:id` to edit a particular keyword
- `DELETE /api/v2/filter_keywords/:id` to delete a particular keyword

* Change from `irreversible` boolean to `action` enum

* Remove irrelevent `irreversible_must_be_within_context` check

* Fix /filters/new and /filters/edit with update for filter_action

* Fix Rubocop/Codeclimate complaining about task names

* Refactor FeedManager#phrase_filtered?

This moves regexp building and filter caching to the `CustomFilter` class.

This does not change the functional behavior yet, but this changes how the
cache is built, doing per-custom_filter regexps so that filters can be matched
independently, while still offering caching.

* Perform server-side filtering and output result in REST API

* Fix numerous filters_changed events being sent when editing multiple keywords at once

* Add some tests

* Use the new API in the WebUI

- use client-side logic for filters we have fetched rules for.
  This is so that filter changes can be retroactively applied without
  reloading the UI.
- use server-side logic for filters we haven't fetched rules for yet
  (e.g. network error, or initial timeline loading)

* Minor optimizations and refactoring

* Perform server-side filtering on the streaming server

* Change the wording of filter action labels

* Fix issues pointed out by linter

* Change design of “Show anyway” link in accordence to review comments

* Drop “irreversible” filtering behavior

* Move /api/v2/filter_keywords to /api/v1/filters/keywords

* Rename `filter_results` attribute to `filtered`

* Rename REST::LegacyFilterSerializer to REST::V1::FilterSerializer

* Fix systemChannelId value in streaming server

* Simplify code by removing client-side filtering code

The simplifcation comes at a cost though: filters aren't retroactively
applied anymore.
2022-06-28 09:42:13 +02:00