47ac7a2e50
fix image for new custom emoji reactions
2022-12-20 18:27:55 +01:00
e4949a252e
run i18n-tasks normalize
2022-12-20 18:27:55 +01:00
f0197c80dc
display external custom emoji reactions properly
...
Using an emoji map was completely unnecessary in
the first place, because the reaction list from
the API response includes URLs for every custom
emoji anyway. The reaction list now also contains
a boolean field indicating whether it is an
external custom emoji, which is required because
people should only be able to react with Unicode
emojis and local custom ones, not with custom
emojis from other servers.
2022-12-20 18:27:55 +01:00
7175d10935
handle incoming custom emoji reactions properly
2022-12-20 18:27:54 +01:00
6d51a3de13
support Undo action for EmojiReaction
2022-12-20 18:27:54 +01:00
bd026ad118
download remote custom emojis from reactions
...
Emoji reactions containing custom emojis from
remote instances were assumed to already have
been downloaded and stored in the database.
This might obviously not be the case.
2022-12-20 18:27:54 +01:00
17d23d1c73
fix integer cast bug
...
Gotta love Rails.
2022-12-20 18:27:54 +01:00
77491a8f22
sanitize setting for number of visible reactions
...
This is kind of a hack, but the lack of
validation for settings unfortunately makes it
necessary.
2022-12-20 18:27:54 +01:00
e3f76a1cb0
Add reaction limit to instance serializer
2022-12-20 18:27:53 +01:00
65d727a9e6
fix padding on posts without reactions
...
The margins of the elements above and below the
main reaction list element overlapped before
reactions were added. Adding display: none to
empty reaction bars restores this exact look.
2022-12-20 18:27:53 +01:00
a2db70b3c8
rename nop handler to handleNoOp
...
This also adds the comment in action_bar.js to
status_action_bar.js, clarifying that a future
version could improve this code by modifying
EmojiPickerDropdown.
2022-12-20 18:27:53 +01:00
a9bb743db7
cleanup JS imports and other minor stuff
2022-12-20 18:27:53 +01:00
04467e8f6d
remove unnecessary parameter
2022-12-20 18:27:53 +01:00
a0d7cadcfd
change reaction api to match other interactions
...
Status reactions had an API similar to that of
announcement reactions, using PUT and DELETE at a
single endpoint. I believe that for statuses, it
makes more sense to follow the convention of the
other interactions and use separate POST endpoints
for create and destroy respectively.
2022-12-20 18:27:52 +01:00
f4faa1b511
fix reaction deletion bug and clean up controller
...
Turns out the strange error where it would delete
the wrong reaction occurred because I forgot to
pass the emoji name to the query, which resulted
in the database deleting the first reaction it
found. Also, this removes the unused set_reaction
callback and includes the Authorization module for
the status reactions controller.
2022-12-20 18:27:52 +01:00
f580ffb127
remove outdated comments
2022-12-20 18:27:52 +01:00
e405eb76f4
clean up new imports in vanilla flavour
2022-12-20 18:27:52 +01:00
7cbe6dc3e8
rebase with upstream
2022-12-20 18:27:51 +01:00
7250a4f6c2
make number of visible reactions a vanilla setting
...
Reactions will be backported to the vanilla
flavour, which requires all related settings to
be accessible from the vanilla settings page
rather than the glitch specific settings modal.
2022-12-20 18:27:46 +01:00
47d0271957
make number of displayed reactions a setting
...
This adds an extra item to the local settings for
specifying the number of reactions shown in toots.
The detailed status view always shows all
reactions.
2022-12-20 18:25:43 +01:00
c19e74051c
change default reaction limit to 1
2022-12-20 18:24:21 +01:00
38b8c494b8
limit number of reactions displayed
...
Too many reactions on a single post quickly get
spammy, so they are now sorted by count and only
the first MAX_REACTIONS number of different
emojis are actually displayed.
2022-12-20 18:24:21 +01:00
21b5bb587d
fix reaction margins and paddings
2022-12-20 18:24:20 +01:00
f129b47f13
cleanup frontend emoji reaction code
2022-12-20 18:24:20 +01:00
89a8c21f80
cleanup backend emoji reaction code
2022-12-20 18:24:20 +01:00
d862d9e06e
fix padding for reaction button
2022-12-20 18:24:20 +01:00
1b3df9b5e8
handle misskey reactions properly
...
misskey federates emoji reactions as likes.
2022-12-20 18:24:19 +01:00
da78479b93
move react button to action bar
2022-12-20 18:24:19 +01:00
19491d2032
cherry-pick emoji reaction changes
2022-12-20 18:23:55 +01:00
738433e46a
make frontend fetch reaction limit
...
the maximum number of reactions was previously
hardcoded to 8. this commit also fixes an
incorrect query in StatusReactionValidator where
it didn't count per-user reactions but the total
amount of different ones.
2022-12-20 18:22:05 +01:00
200dd90a9f
make status reaction count limit configurable
2022-12-20 18:22:05 +01:00
83f0b5f288
remove accidentally created file
2022-12-20 18:22:05 +01:00
cc71e734c4
federate emoji reactions
...
this is kind of experimental, but it should work
in theory. at least i tested it with a remove
akkoma instance and it didn't crash.
2022-12-20 18:22:05 +01:00
ff379c7fd0
show reactions in detailed status view
2022-12-20 18:22:04 +01:00
dcea57a808
add frontend for emoji reactions
...
this is still pretty bare bones but hey, it works.
2022-12-20 18:22:04 +01:00
7facf831e1
add backend support for status emoji reactions
...
turns out we can just reuse the code for
announcement reactions.
2022-12-20 18:22:04 +01:00
Eugen Rochko
de21695162
New Crowdin updates ( #22354 )
...
* New translations en.json (Hindi)
* New translations en.json (Malay)
* New translations en.json (Telugu)
* New translations en.json (English, United Kingdom)
* New translations en.json (Burmese)
* New translations en.json (Welsh)
* New translations en.json (Faroese)
* New translations en.json (Esperanto)
* New translations en.json (Uyghur)
* New translations en.json (Chinese Traditional, Hong Kong)
* New translations en.json (Tatar)
* New translations en.json (Malayalam)
* New translations en.json (Breton)
* New translations en.json (Latin)
* New translations en.json (Bosnian)
* New translations en.json (French, Quebec)
* New translations en.json (Sinhala)
* New translations en.json (Cornish)
* New translations en.json (Kannada)
* New translations en.json (Scottish Gaelic)
* New translations en.json (Asturian)
* New translations en.json (Aragonese)
* New translations en.json (Occitan)
* New translations en.json (Serbian (Latin))
* New translations en.json (Kurmanji (Kurdish))
* New translations en.json (Sorani (Kurdish))
* New translations en.json (Scots)
* New translations en.json (Igbo)
* New translations en.json (Corsican)
* New translations en.json (Sardinian)
* New translations en.json (Sanskrit)
* New translations en.json (Kabyle)
* New translations en.json (Ido)
* New translations en.json (Taigi)
* New translations en.json (Silesian)
* New translations en.json (Standard Moroccan Tamazight)
* New translations en.yml (Korean)
* New translations en.yml (Galician)
* New translations doorkeeper.en.yml (Korean)
* New translations doorkeeper.en.yml (Galician)
* New translations en.json (Spanish)
* New translations en.json (Belarusian)
* New translations en.yml (Belarusian)
* New translations doorkeeper.en.yml (Belarusian)
* New translations en.json (Bulgarian)
* New translations en.json (Greek)
* New translations activerecord.en.yml (Bulgarian)
* New translations devise.en.yml (Bulgarian)
* New translations doorkeeper.en.yml (Belarusian)
* New translations doorkeeper.en.yml (Bulgarian)
* New translations en.json (German)
* New translations en.json (Italian)
* New translations en.json (Slovenian)
* New translations en.json (Kurmanji (Kurdish))
* New translations en.yml (Bulgarian)
* New translations doorkeeper.en.yml (Bulgarian)
* New translations en.json (Spanish)
* New translations en.json (Swedish)
* New translations en.json (Ukrainian)
* New translations en.json (Estonian)
* New translations en.json (Welsh)
* New translations en.yml (Spanish)
* New translations en.yml (Bulgarian)
* New translations doorkeeper.en.yml (Spanish)
* New translations en.json (Faroese)
* New translations en.json (Latin)
* New translations en.json (Catalan)
* New translations en.json (Vietnamese)
* New translations en.yml (Bulgarian)
* New translations en.yml (Serbian (Latin))
* New translations en.json (Frisian)
* New translations en.json (Hebrew)
* New translations en.json (Latvian)
* New translations en.yml (Bulgarian)
* New translations en.yml (Dutch)
* New translations simple_form.en.yml (Dutch)
* New translations devise.en.yml (Dutch)
* New translations en.json (Catalan)
* New translations en.json (Chinese Traditional)
* New translations en.yml (Bulgarian)
* New translations doorkeeper.en.yml (German)
* New translations en.json (German)
* New translations en.yml (Bulgarian)
* New translations doorkeeper.en.yml (German)
* New translations en.json (Latin)
* New translations simple_form.en.yml (Frisian)
* New translations en.json (French)
* New translations en.json (Hungarian)
* New translations en.json (Polish)
* New translations en.json (Portuguese)
* New translations en.json (Latin)
* New translations en.yml (Portuguese)
* New translations doorkeeper.en.yml (Portuguese)
* New translations en.json (Albanian)
* New translations en.yml (Hebrew)
* New translations en.yml (Albanian)
* New translations doorkeeper.en.yml (Albanian)
* New translations en.json (Norwegian)
* New translations en.json (Russian)
* New translations en.json (Thai)
* New translations en.yml (Bulgarian)
* New translations en.yml (Thai)
* New translations simple_form.en.yml (Bulgarian)
* New translations doorkeeper.en.yml (Thai)
* New translations en.json (Asturian)
* New translations en.yml (Norwegian)
* New translations en.json (Danish)
* New translations en.json (Finnish)
* New translations en.json (Occitan)
* New translations en.yml (Korean)
* New translations doorkeeper.en.yml (Korean)
* New translations en.yml (Thai)
* New translations en.json (Persian)
* New translations doorkeeper.en.yml (Spanish, Argentina)
* New translations en.yml (Bulgarian)
* New translations en.json (Norwegian Nynorsk)
* New translations en.yml (Bulgarian)
* New translations simple_form.en.yml (Bulgarian)
* New translations en.json (Dutch)
* New translations doorkeeper.en.yml (Dutch)
* New translations en.yml (Korean)
* New translations en.json (Japanese)
* New translations en.json (Turkish)
* New translations en.yml (Turkish)
* New translations doorkeeper.en.yml (Turkish)
* New translations en.json (Czech)
* New translations en.yml (Czech)
* New translations en.json (German)
* New translations en.yml (German)
* New translations en.yml (Thai)
* New translations simple_form.en.yml (German)
* New translations doorkeeper.en.yml (German)
* New translations doorkeeper.en.yml (Thai)
* New translations en.json (German)
* New translations en.json (Estonian)
* New translations en.yml (Estonian)
* New translations devise.en.yml (Estonian)
* New translations doorkeeper.en.yml (German)
* New translations doorkeeper.en.yml (Estonian)
* New translations en.json (Indonesian)
* New translations en.json (Estonian)
* New translations en.yml (Indonesian)
* New translations en.yml (Estonian)
* New translations simple_form.en.yml (Estonian)
* New translations devise.en.yml (Estonian)
* New translations en.yml (Russian)
* New translations doorkeeper.en.yml (Russian)
* New translations en.yml (Estonian)
* New translations doorkeeper.en.yml (Estonian)
* New translations en.json (Polish)
* New translations en.yml (Polish)
* New translations doorkeeper.en.yml (Estonian)
* New translations en.json (Basque)
* New translations en.json (Portuguese, Brazilian)
* New translations en.json (Estonian)
* New translations en.yml (Basque)
* New translations en.yml (Estonian)
* New translations en.json (French)
* New translations en.json (Estonian)
* New translations en.yml (French)
* New translations en.yml (Bulgarian)
* New translations en.yml (Estonian)
* New translations simple_form.en.yml (Estonian)
* New translations activerecord.en.yml (Estonian)
* New translations doorkeeper.en.yml (Estonian)
* New translations en.json (German)
* New translations en.json (Estonian)
* New translations en.yml (Bulgarian)
* New translations doorkeeper.en.yml (Ukrainian)
* New translations en.json (Bengali)
* New translations en.json (Estonian)
* New translations en.yml (Swedish)
* New translations en.yml (Estonian)
* New translations simple_form.en.yml (Ukrainian)
* New translations simple_form.en.yml (Estonian)
* New translations devise.en.yml (Swedish)
* New translations devise.en.yml (Estonian)
* New translations doorkeeper.en.yml (Estonian)
* New translations simple_form.en.yml (Bulgarian)
* New translations en.json (Icelandic)
* New translations en.yml (Icelandic)
* New translations simple_form.en.yml (Bulgarian)
* New translations simple_form.en.yml (Bulgarian)
* New translations en.yml (Icelandic)
* New translations simple_form.en.yml (Bulgarian)
* New translations simple_form.en.yml (Icelandic)
* New translations activerecord.en.yml (Icelandic)
* New translations devise.en.yml (Icelandic)
* New translations doorkeeper.en.yml (Icelandic)
* New translations en.yml (Bulgarian)
* New translations en.yml (Korean)
* New translations simple_form.en.yml (Bulgarian)
* New translations en.json (Chinese Traditional, Hong Kong)
* New translations en.yml (Bulgarian)
* New translations en.yml (Korean)
* New translations en.yml (Chinese Traditional, Hong Kong)
* New translations doorkeeper.en.yml (Icelandic)
* New translations doorkeeper.en.yml (Chinese Traditional, Hong Kong)
* New translations en.yml (Estonian)
* New translations simple_form.en.yml (Estonian)
* New translations en.yml (Japanese)
* New translations en.json (Norwegian Nynorsk)
* New translations en.json (Kurmanji (Kurdish))
* New translations en.yml (Japanese)
* New translations en.yml (Kurmanji (Kurdish))
* New translations simple_form.en.yml (Kurmanji (Kurdish))
* New translations en.json (Norwegian Nynorsk)
* New translations en.yml (Bulgarian)
* New translations en.yml (Thai)
* New translations en.yml (Norwegian Nynorsk)
* New translations doorkeeper.en.yml (French)
* New translations doorkeeper.en.yml (Thai)
* New translations en.yml (Thai)
* New translations en.yml (Norwegian Nynorsk)
* New translations doorkeeper.en.yml (Norwegian Nynorsk)
* New translations en.json (Estonian)
* New translations en.yml (Bulgarian)
* New translations en.yml (Ukrainian)
* New translations simple_form.en.yml (Ukrainian)
* New translations simple_form.en.yml (Estonian)
* New translations doorkeeper.en.yml (Dutch)
* New translations en.json (Serbian (Cyrillic))
* New translations en.json (Estonian)
* New translations en.json (Serbian (Latin))
* New translations en.yml (Polish)
* New translations en.json (Chinese Simplified)
* New translations en.yml (Chinese Simplified)
* New translations doorkeeper.en.yml (Chinese Simplified)
* New translations en.yml (Bulgarian)
* New translations en.json (Estonian)
* New translations en.yml (Bulgarian)
* New translations en.yml (Chinese Simplified)
* New translations doorkeeper.en.yml (Czech)
* New translations en.json (Estonian)
* New translations en.yml (Bulgarian)
* New translations en.yml (Estonian)
* New translations simple_form.en.yml (Frisian)
* New translations simple_form.en.yml (Icelandic)
* New translations en.yml (Bulgarian)
* New translations simple_form.en.yml (Frisian)
* New translations en.yml (Bulgarian)
* Normalize
* New translations en.yml (Serbian (Cyrillic))
* Normalize
* New translations en.yml (Serbian (Cyrillic))
* New translations doorkeeper.en.yml (Serbian (Cyrillic))
* New translations doorkeeper.en.yml (Serbian (Latin))
* New translations en.yml (Bulgarian)
* Normalize
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
2022-12-20 23:02:47 +09:00
www-cat
ba15694003
Add ukrainian translations ( #1959 )
2022-12-20 12:47:03 +01:00
Plastikmensch
ee71d42c29
Add missing translation keys ( #2010 )
...
* Add missing locale keys
Added missing translation keys to en.js to make translation easier and more complete.
Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
* Remove translation keys for explore
Have been added to vanilla in #2014
Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
* Remove unused key
Sorry, originally worked on this on my custom fork, which has this key, before I decided to work on glitch.
Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
2022-12-20 12:45:53 +01:00
Claire
749c360ba0
Reuse upstream's “Posts and replies” as column heading ( #2023 )
...
Upstream does not have a column heading for “Posts and replies”, but the
text itself exists in a similar context, so re-use that translatable
string so that we can use upstream's translations.
2022-12-20 12:37:14 +01:00
dependabot[bot]
628b350516
Bump fog-openstack from 0.3.2 to 0.3.10 ( #22542 )
...
Bumps [fog-openstack](https://github.com/fog/fog-openstack ) from 0.3.2 to 0.3.10.
- [Release notes](https://github.com/fog/fog-openstack/releases )
- [Changelog](https://github.com/fog/fog-openstack/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fog/fog-openstack/compare/v0.3.2...v0.3.10 )
---
updated-dependencies:
- dependency-name: fog-openstack
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-12-20 19:44:56 +09:00
dependabot[bot]
919747322f
Bump scenic from 1.6.0 to 1.7.0 ( #22258 )
...
Bumps [scenic](https://github.com/scenic-views/scenic ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/scenic-views/scenic/releases )
- [Changelog](https://github.com/scenic-views/scenic/blob/main/CHANGELOG.md )
- [Commits](https://github.com/scenic-views/scenic/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: scenic
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-12-20 19:10:09 +09:00
dependabot[bot]
c04b762b9c
Bump http from 5.1.0 to 5.1.1 ( #22515 )
...
Bumps [http](https://github.com/httprb/http ) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/httprb/http/releases )
- [Changelog](https://github.com/httprb/http/blob/main/CHANGES.md )
- [Commits](https://github.com/httprb/http/compare/v5.1.0...v5.1.1 )
---
updated-dependencies:
- dependency-name: http
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-12-20 19:09:14 +09:00
dependabot[bot]
ef09016f35
Bump pundit from 2.2.0 to 2.3.0 ( #22516 )
...
Bumps [pundit](https://github.com/varvet/pundit ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/varvet/pundit/releases )
- [Changelog](https://github.com/varvet/pundit/blob/main/CHANGELOG.md )
- [Commits](https://github.com/varvet/pundit/commits )
---
updated-dependencies:
- dependency-name: pundit
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-12-20 19:08:53 +09:00
dependabot[bot]
fcaeae7761
Bump fog-core from 2.1.0 to 2.3.0 ( #22521 )
...
Bumps [fog-core](https://github.com/fog/fog-core ) from 2.1.0 to 2.3.0.
- [Release notes](https://github.com/fog/fog-core/releases )
- [Changelog](https://github.com/fog/fog-core/blob/master/changelog.md )
- [Commits](https://github.com/fog/fog-core/compare/v2.1.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: fog-core
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-12-20 19:08:22 +09:00
dependabot[bot]
6a1d41635b
Bump sass from 1.56.2 to 1.57.0 ( #22519 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.56.2 to 1.57.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.56.2...1.57.0 )
---
updated-dependencies:
- dependency-name: sass
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-12-20 19:07:56 +09:00
Claire
c1de673060
Fix suspension worker crashing on S3-compatible setups without ACL support ( #22487 )
2022-12-19 17:55:17 +01:00
Kai
2bad619d17
Change HTTP to HTTPS for links in CODE_OF_CONDUCT ( #22465 )
2022-12-19 09:46:22 +09:00
Nick Schonning
06b68490d1
Enable eslint:recommended ruleset ( #22433 )
...
* Enable ESLint recommended ruleset
* Disable failing ESLint recommended rules
* Remove rules shadowed by eslint:recommended
2022-12-19 00:51:37 +09:00
181ad9ef93
Update schema.rb
2022-12-18 04:29:35 +01:00