Commit graph

16033 commits

Author SHA1 Message Date
Claire
0060eb5dcf Merge branch 'main' into glitch-soc/merge-upstream 2022-10-28 19:23:58 +02:00
Claire
6e553c6467 Revert notification design () 2022-10-28 10:30:14 +02:00
Claire
7379f8aa14 Fix status prepend design ()
* Fix status prepend design

* Adjust status prepend styling a bit
2022-10-28 08:47:10 +02:00
Eugen Rochko
87c34be5bd Fix avatars not using image tags in web UI ()
Fix 
2022-10-28 00:48:45 +02:00
Eugen Rochko
bf1bc15575 Fix using wrong policy on status-related actions in admin UI () 2022-10-28 00:48:30 +02:00
Eugen Rochko
79f5e4d088 Bump version to 4.0.0rc1 () 2022-10-28 00:26:02 +02:00
Eugen Rochko
c71443ef1d Remove unused method searchable? on accounts ()
It called the wrong methods, but nothing uses it
2022-10-27 19:30:08 +02:00
Eugen Rochko
ccbf541365 Change closed_registrations_message to message and add Markdown () 2022-10-27 19:17:48 +02:00
Eugen Rochko
4b0d58f0ad Fix missing delete and redraft link in web UI () 2022-10-27 19:17:15 +02:00
Shlee
a81c071a45 Remove duplicate HSTS headers from nginx.conf ()
* Update nginx.conf

* Update nginx.conf

* Update nginx.conf
2022-10-27 16:58:49 +02:00
Eugen Rochko
c92e2658e0 Add --remove-role option to tootctl accounts modify ()
Fix 
2022-10-27 14:31:10 +02:00
Eugen Rochko
4435be82db Fix uncaught error when invalid date is supplied to API ()
Fix 
2022-10-27 14:30:52 +02:00
Eugen Rochko
35b5120c5d Fix notifications about deleted reports not being also deleted ()
* Fix notifications about deleted reports not being also deleted

* Fix notification with empty report crashing web UI

Fix 
2022-10-27 02:10:54 +02:00
Eugen Rochko
b121befc33 Fix wrong math function used in search query () 2022-10-27 02:10:38 +02:00
zunda
3697b51abc Store integer settings as integer () 2022-10-26 22:14:07 +02:00
Eugen Rochko
9788e248fb Fix improperly checking for blocked domain on followed hashtags ()
Fix 
2022-10-26 20:40:56 +02:00
Claire
d94b1c682a Add closed registrations modal () 2022-10-26 19:35:55 +02:00
prplecake
d870657f80 Add "unsafe-eval" to script-src CSP () 2022-10-26 19:23:16 +02:00
Yamagishi Kazutoshi
9315d51940 Disable media cache on service worker () 2022-10-26 18:21:36 +02:00
Yamagishi Kazutoshi
c84b4d4b9c Fix /web prefix () 2022-10-26 16:56:37 +02:00
Eugen Rochko
85fc370638 Change post editing to be enabled in web UI () 2022-10-26 15:23:00 +02:00
dependabot[bot]
8ee0f6154c Bump utf-8-validate from 5.0.9 to 5.0.10 ()
Bumps [utf-8-validate](https://github.com/websockets/utf-8-validate) from 5.0.9 to 5.0.10.
- [Release notes](https://github.com/websockets/utf-8-validate/releases)
- [Commits](https://github.com/websockets/utf-8-validate/compare/v5.0.9...v5.0.10)

---
updated-dependencies:
- dependency-name: utf-8-validate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 21:08:16 +09:00
dependabot[bot]
eb8dca75df Bump @babel/plugin-proposal-decorators from 7.19.3 to 7.19.6 ()
Bumps [@babel/plugin-proposal-decorators](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-decorators) from 7.19.3 to 7.19.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.19.6/packages/babel-plugin-proposal-decorators)

---
updated-dependencies:
- dependency-name: "@babel/plugin-proposal-decorators"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 21:07:47 +09:00
Eugen Rochko
3c273d1b34 Fix warning about constants in routes () 2022-10-26 14:01:02 +02:00
dependabot[bot]
f5ef7f7e10 Bump jest from 29.1.2 to 29.2.2 ()
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.1.2 to 29.2.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.2.2/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:52:01 +09:00
Eugen Rochko
3e5588bf70 Add ability to view previous edits of a status in admin UI ()
* Add ability to view previous edits of a status in admin UI

* Change moderator access to posts to be controlled by a separate policy
2022-10-26 13:42:29 +02:00
dependabot[bot]
02effe621f Bump jest-environment-jsdom from 29.1.2 to 29.2.1 ()
Bumps [jest-environment-jsdom](https://github.com/facebook/jest/tree/HEAD/packages/jest-environment-jsdom) from 29.1.2 to 29.2.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.2.1/packages/jest-environment-jsdom)

---
updated-dependencies:
- dependency-name: jest-environment-jsdom
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:16:50 +09:00
dependabot[bot]
ade875111f Bump babel-jest from 29.1.2 to 29.2.1 ()
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 29.1.2 to 29.2.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.2.1/packages/babel-jest)

---
updated-dependencies:
- dependency-name: babel-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:16:26 +09:00
dependabot[bot]
1e6ed65299 Bump ws from 8.9.0 to 8.10.0 ()
Bumps [ws](https://github.com/websockets/ws) from 8.9.0 to 8.10.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.9.0...8.10.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:15:38 +09:00
dependabot[bot]
b7497f4198 Bump npmlog from 7.0.0 to 7.0.1 ()
Bumps [npmlog](https://github.com/npm/npmlog) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/npm/npmlog/releases)
- [Changelog](https://github.com/npm/npmlog/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/npmlog/compare/v7.0.0...v7.0.1)

---
updated-dependencies:
- dependency-name: npmlog
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:14:33 +09:00
dependabot[bot]
382731e911 Bump react-select from 5.5.1 to 5.5.4 ()
Bumps [react-select](https://github.com/JedWatson/react-select) from 5.5.1 to 5.5.4.
- [Release notes](https://github.com/JedWatson/react-select/releases)
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@5.5.1...react-select@5.5.4)

---
updated-dependencies:
- dependency-name: react-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:13:37 +09:00
dependabot[bot]
0e799c9e2c Bump eslint-plugin-promise from 6.1.0 to 6.1.1 ()
Bumps [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/eslint-community/eslint-plugin-promise/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-promise/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint-community/eslint-plugin-promise/compare/v6.1.0...v6.1.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-promise
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:13:05 +09:00
dependabot[bot]
dbbb6beaf0 Bump @babel/plugin-transform-runtime from 7.19.1 to 7.19.6 ()
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.19.1 to 7.19.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.19.6/packages/babel-plugin-transform-runtime)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:12:38 +09:00
dependabot[bot]
079af1a894 Bump @babel/core from 7.19.3 to 7.19.6 ()
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.19.3 to 7.19.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.19.6/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:11:55 +09:00
dependabot[bot]
d71e9d3568 Bump bufferutil from 4.0.6 to 4.0.7 ()
Bumps [bufferutil](https://github.com/websockets/bufferutil) from 4.0.6 to 4.0.7.
- [Release notes](https://github.com/websockets/bufferutil/releases)
- [Commits](https://github.com/websockets/bufferutil/compare/v4.0.6...v4.0.7)

---
updated-dependencies:
- dependency-name: bufferutil
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 20:11:05 +09:00
Eugen Rochko
821c050f08 Fix negatives values in search index causing queries to fail () 2022-10-26 13:00:43 +02:00
Eugen Rochko
d53e1fc6d9 Fix vacuum scheduler missing lock, locks never expiring ()
Remove vacuuming of orphaned preview cards
2022-10-26 12:10:48 +02:00
Eugen Rochko
6c1c7d9d3b Change unauthenticated search to not support pagination in REST API ()
- Only exact search matches for queries with < 5 characters
- Do not support queries with `offset` (pagination)
- Return HTTP 401 on truthy `resolve` instead of overriding to false
2022-10-26 12:10:02 +02:00
Eugen Rochko
317383f397 Revert "Remove preference to aggregate reblogs in home/list feeds ()" ()
This reverts commit dd5b90e4f2.
2022-10-26 09:10:18 +02:00
Eugen Rochko
7b0b8221a5 Fix IP blocks not having a unique index () 2022-10-25 21:43:44 +02:00
Eugen Rochko
e0516f9832 Fix wrong size of avatars in admin UI () 2022-10-25 21:43:33 +02:00
Claire
4a6fb0ea2a Remove navigation links to /explore when trends are disabled ()
* Remove navigation links to /explore when trends are disabled

* Do not display trends interface when trends are disabled
2022-10-25 19:03:16 +02:00
Eugen Rochko
7cbab3e7fd Change layout of posts in web UI () 2022-10-25 19:02:21 +02:00
Eugen Rochko
3a2f9a8c53 Change design of translations in web UI () 2022-10-25 18:47:21 +02:00
Eugen Rochko
b01fad5dbd Fix nofollow rel being removed in web UI () 2022-10-25 18:47:04 +02:00
Claire
d2d2ec29f4 Add mention of the translation provider when translating a post () 2022-10-24 18:37:57 +02:00
Claire
119b5adbe0 Change “Translate” button to only show up when a translation backend is configured ()
* Change “Translate” button to only show up when a translation backend is configured

Fixes 

* Add `translation` attribute to /api/v2/instance to expose whether the translation feature is enabled

Fixes 
2022-10-24 18:30:58 +02:00
Claire
0e682bbe24 Fix WebUI notification settings for new user and new report notifications ()
Due to an error in operator priority, those settings would only show up if the
user role included the all-encompassing `administrator` permission and would
display `0` otherwise.
2022-10-24 17:37:46 +02:00
Eugen Rochko
aa2d04e53e Fix language dropdown causing zoom on mobile devices in web UI () 2022-10-23 23:38:20 +02:00
Eugen Rochko
14b27b92e2 Fix media, following and followers tabs in web UI () 2022-10-23 23:38:08 +02:00