Jeremy Kescher
e1530a66ef
Add reaction limit to instance serializer
2022-12-02 08:05:10 +01:00
fef
cff48e5ad1
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-02 02:57:19 +01:00
fef
e48573570a
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-02 02:01:14 +01:00
fef
e27a610ada
cleanup JS imports and other minor stuff
2022-12-01 23:34:42 +01:00
fef
49b0f93cf6
remove unnecessary parameter
2022-12-01 22:37:30 +01:00
fef
059cc99934
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 22:37:30 +01:00
fef
30362cb520
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 22:37:29 +01:00
fef
a1dc767f8c
remove outdated comments
2022-12-01 22:37:29 +01:00
fef
09a85f2504
clean up new imports in vanilla flavour
2022-12-01 22:37:29 +01:00
fef
1922a5d92d
backport emoji reactions to vanilla flavour
2022-12-01 22:37:29 +01:00
fef
3f0eca5f4b
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-01 22:37:29 +01:00
fef
b0ae82beb2
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-01 22:37:28 +01:00
fef
7c11bd1df2
change default reaction limit to 1
2022-12-01 22:37:28 +01:00
fef
53c79b8e3a
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-01 22:37:28 +01:00
fef
91ca188f51
fix reaction margins and paddings
2022-12-01 22:37:28 +01:00
fef
eb1ecbd7e8
cleanup frontend emoji reaction code
2022-12-01 22:37:28 +01:00
fef
8503bdf46d
cleanup backend emoji reaction code
2022-12-01 22:37:28 +01:00
fef
58869dee10
fix padding for reaction button
2022-12-01 22:37:28 +01:00
fef
02b61f0080
handle misskey reactions properly
...
misskey federates emoji reactions as likes.
2022-12-01 22:37:27 +01:00
fef
5fe08b76dd
move react button to action bar
2022-12-01 22:37:27 +01:00
fef
d3ff2b670e
cherry-pick emoji reaction changes
2022-12-01 22:37:27 +01:00
fef
c45431a1b8
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-01 22:37:27 +01:00
fef
ab346f4ba0
make status reaction count limit configurable
2022-12-01 22:37:27 +01:00
fef
d43a993f36
remove accidentally created file
2022-12-01 22:37:27 +01:00
fef
9cc751f5f1
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-01 22:37:27 +01:00
fef
852c57c308
show reactions in detailed status view
2022-12-01 22:37:26 +01:00
fef
fbf8e3d869
add frontend for emoji reactions
...
this is still pretty bare bones but hey, it works.
2022-12-01 22:37:26 +01:00
fef
493f746150
add backend support for status emoji reactions
...
turns out we can just reuse the code for
announcement reactions.
2022-12-01 22:37:26 +01:00
Claire
4ac6601476
Port navigation bar from upstream ( #1986 )
...
Fixes #1977
2022-12-01 20:06:08 +01:00
Claire
105d9743ae
Merge pull request #1984 from ClearlyClaire/glitch-soc/merge-upstream
...
Merge upstream changes
2022-12-01 11:35:13 +01:00
Claire
fd6f9bf7a7
Merge branch 'main' into glitch-soc/merge-upstream
2022-12-01 11:08:52 +01:00
Nick Schonning
491ab8de89
Fix GitHub form label type ( #21833 )
2022-12-01 10:49:25 +01:00
Claire
68d1df8bc3
Fix some performance issues with /admin/instances ( #21907 )
...
/admin/instances?availability=failing remains wholly unefficient
2022-12-01 10:32:10 +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
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
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
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
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
Claire
2d4d99f135
Fix expanded statuses not always being scrolled into view ( #21797 )
2022-11-28 16:42:04 +01:00
Claire
1a7aa37b60
Merge pull request #1976 from ClearlyClaire/glitch-soc/merge-upstream
...
Merge upstream changes
2022-11-28 14:17:00 +01:00
Connor Shea
f51990bd62
[Glitch] Make the 'Trending now' header a link to Explore.
...
Port cec1e902e0
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-28 11:59:00 +01:00