Commit graph

16772 commits

Author SHA1 Message Date
fef
58145e775f
bump to nyastodon 1.1.5 2022-12-01 02:58:57 +00:00
fef
ca4df02956
merge catcatnya/main into main 2022-12-01 02:53:26 +00:00
fef
1953917c19
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-01 02:24:08 +00:00
fef
d99758ba9a
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-01 01:41:47 +00:00
fef
537bd898a0
remove outdated comments 2022-11-30 19:29:56 +00:00
Jeremy Kescher
495da7d1a8
Merge remote-tracking branch 'upstream/main' into develop 2022-11-30 18:24:52 +01:00
Claire
fc0e11abdb
Merge pull request #1983 from ClearlyClaire/glitch-soc/features/translation
Port “Translate” feature from upstream
2022-11-30 18:12:53 +01:00
fef
46eaff7d62
clean up new imports in vanilla flavour 2022-11-30 17:09:16 +00:00
Jeremy Kescher
bbbf5f1746
Upgrade ruby dependencies 2022-11-30 18:06:14 +01:00
Jeremy Kescher
d23e167d0d
Merge remote-tracking branch 'upstream/main' into develop 2022-11-30 17:56:57 +01:00
fef
57e46f4aaf
merge catstodon/main into main 2022-11-30 16:35:05 +00:00
fef
4489c51bb9
bump to nyastodon 1.1.4 2022-11-30 16:30:42 +00:00
fef
1ab64b9f2a
backport emoji reactions to vanilla flavour 2022-11-30 16:25:36 +00:00
fef
4571ee9da6
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-11-30 14:59:37 +00:00
Claire
e64909d8bf Move translate button above media attachments/preview cards 2022-11-30 15:03:47 +01:00
Claire
afdd75e1f9 Fix translate button not being shown when the toot has no Content Warning 2022-11-30 14:44:06 +01:00
fef
96cd869dad
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-11-30 13:20:20 +00:00
Claire
620b079a78 Fix inconsistent with “translate” button padding 2022-11-30 13:53:38 +01:00
Eugen Rochko
f7684a31fe [Glitch] Change design of translations in web UI
Port fcca781aae to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
Claire
44c0ba445a [Glitch] Add mention of the translation provider when translating a post
Port 30453fab80 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
Claire
47bd934061 [Glitch] Change “Translate” button to only show up when a translation backend is configured
Port 8046cf34d6 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
Eugen Rochko
e8d0a1b320 [Glitch] Fix showing translate button when status has no language in web UI
Port 4adb267f91 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
Eugen Rochko
5e143db13a [Glitch] Don't show translate button to logged-out users
Port part of e623c302d5 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
Eugen Rochko
b5ee275ed9 [Glitch] Fix translations not being formatted, other issues in web UI
Port 55a2e9b5be to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
Eugen Rochko
a3052dad04 [Glitch] Add user content translations with configurable backends
Port 0d6b878808 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-30 13:53:38 +01:00
fef
273ba5a060
change default reaction limit to 1 2022-11-30 12:01:34 +00:00
Claire
f3ce9653eb
Merge pull request #1982 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
2022-11-30 11:13:58 +01:00
Claire
fe111a8bad Merge branch 'main' into glitch-soc/merge-upstream 2022-11-30 10:29:19 +01:00
fef
b780c63420
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-11-30 09:06:14 +00:00
mhkhung
1122697b37
3.0.5 version of cimg/ruby:3.0-node upgraded to node 18 (#21873)
Node 18 caused build to fail
2022-11-30 09:56:27 +01:00
fef
df19e54334
fix reaction margins and paddings 2022-11-29 09:07:10 +00:00
fef
80a2f84334
cleanup frontend emoji reaction code 2022-11-29 08:54:35 +00:00
fef
9b0f46f808
cleanup backend emoji reaction code 2022-11-29 08:15:52 +00:00
fef
67e379059c
make homogay body background a little lighter 2022-11-29 06:42:45 +00:00
fef
42f34cfb81
fix padding for reaction button 2022-11-29 06:25:43 +00:00
fef
ddeda89821
bump to nyastodon 1.1.3 2022-11-29 05:38:15 +00:00
fef
f33b10fe0d
handle misskey reactions properly
misskey federates emoji reactions as likes.
2022-11-29 05:21:53 +00:00
fef
4e041d1e00
bump to nyastodon 1.1.2 2022-11-29 04:38:41 +00:00
fef
96471c9398
move react button to action bar 2022-11-29 04:37:44 +00:00
fef
7f157c35cf
bump to nyastodon 1.1.1 2022-11-29 03:32:54 +00:00
fef
6d86e8a3be
add a little extra movement to fav animation 2022-11-29 03:32:09 +00:00
fef
d6e3a9f17f
send reaction notifications 2022-11-29 03:31:22 +00:00
fef
cfa4824492
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-11-29 00:39:40 +00:00
fef
c7129ef7e7
make status reaction count limit configurable 2022-11-28 23:16:56 +00:00
Jeremy Kescher
730a09f642
v4.0.2+1.0.6 2022-11-29 00:15:08 +01:00
fef
0157438894
merge catcatnya/main into main 2022-11-28 22:47:46 +00:00
fef
1a84936322
bump to nyastodon 1.1.0 2022-11-28 22:47:32 +00:00
fef
9c7db58e30
remove accidentally created file 2022-11-28 22:25:12 +00:00
fef
32d689a00e
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-11-28 22:23:13 +00:00
Claire
2d4d99f135
Fix expanded statuses not always being scrolled into view (#21797) 2022-11-28 16:42:04 +01:00