Commit graph

388 commits

Author SHA1 Message Date
Hazelnoot
372385b755 fix DB type of MiUser.lastFetchedFeaturedAt 2025-11-15 14:08:35 -05:00
Hazelnoot
94c4df602f add MiUser.lastFetchedFeaturedAt 2025-11-15 14:08:35 -05:00
Hazelnoot
a4440e43a6 add UpdateLatestNote, PostSuspend, and PostUnsuspend background tasks 2025-11-15 14:08:32 -05:00
Hazelnoot
8e75d6149e fix stall in EnableInstanceHOTUpdates1750217001651 migration 2025-11-15 14:08:32 -05:00
Hazelnoot
41e50eeb0e add update-user-tags, update-note-tags, post-deliver, post-inbox, post-note, and check-hibernation background tasks 2025-11-15 14:08:32 -05:00
Hazelnoot
ce8c8e9851 slightly reduce stalls when updating MiInstance 2025-11-15 14:08:32 -05:00
Hazelnoot
5807b33e04 fix additional references to loadConfig and createPostgresDataSource that were hiding in .JS files 2025-11-05 19:42:30 -05:00
Hazelnoot
49dad22609 replace shared_access_token table with an extra column on access_token 2025-10-07 20:49:28 -04:00
Hazelnoot
e5cf9d3f9a add migration for access token rank 2025-10-07 20:49:28 -04:00
Hazelnoot
fa5a46f379 basic support for Shared Access Accounts 2025-10-07 20:47:34 -04:00
Marie
741e612508 merge: Expand Mandatory CW feature and fixup block/mute/silence features (resolves #809, #910, #912, #943, #1064, #1142, and #1186) (!1148)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1148

Closes #809, #910, #912, #943, #1064, #1142, and #1186

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-09-25 20:05:46 +02:00
Hazelnoot
13b6097a12 merge: Allow for sending announcement mails with List-Unsubscribe: (!1164)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1164

Closes #854

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-09-13 12:32:39 -04:00
Hazelnoot
d62be884b3 replace "Mark instance as NSFW" toggle with an instance-level mandatory CW 2025-09-13 11:34:36 -04:00
Hazelnoot
5e0115335a add mandatory CW for instances 2025-09-13 11:34:35 -04:00
Hazelnoot
92750240eb implement mandatory CW for notes (resolves #910) 2025-09-13 11:34:35 -04:00
Lillychan
521d7d0cf3 Update file 1754754816000-metaRulesLength.js 2025-08-31 11:41:05 +02:00
Hazelnoot
49c4c2b9ad merge: fix(BE): Set serverRules to text (!1209)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1209

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-08-29 15:50:11 +00:00
Marie
d872c6608f merge: Allow restricting announcement to a set of roles (!1161)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1161

Closes #682

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-08-16 08:11:08 +00:00
наб
132c25b271
Log IP addresses used during registration
Closes #836
2025-08-11 23:53:13 +02:00
наб
b61c1d5b27
forRoles IS NOT NULL, coalesce to empty=unrestricted 2025-08-11 23:53:05 +02:00
наб
f3b5c3f447
Allow restricting announcement to a set of roles. Fix MkRoleSelectDialog only respecting publicOnly half the time
Closes #682
2025-08-11 23:53:05 +02:00
Lilly Schramm
6e46de3438 fix(BE): Set serverRules to ext 2025-08-09 18:00:40 +02:00
наб
c6e4c9294f
Allow for sending announcement mails with List-Unsubscribe:
Per https://datatracker.ietf.org/doc/html/rfc8058,
we send "announcement" mails with
  List-Unsubscribe: <${apiUrl}/unsubscribe/${userId}/${oneClickUnsubscribeToken}>
  List-Unsubscribe-Post: List-Unsubscribe=One-Click
and handle
  POST /api/unsubscribe/:user/:token => this unsubscribes
  GET  /api/unsubscribe/:user/:token => 302 /unsubscribe/:user/:token
  GET  /unsubscribe/:user/:token     => user-visible page with clickthrough confirmation

In this configuration, compatible MUAs will show an "unsubscribe" button
that, when clicked, will POST to the URL directly

Less-compatible MUAs (and scanners) will open the page directly
which will redirect to a click-though; interactive users will be able to
unsubscribe, scanners won't unsubscribe by accident

Nothing /actually/ sends non-reactive mails,
so this is never used at this time

Closes #854
2025-07-27 18:29:16 +02:00
Hazelnoot
07295ad62d merge: Split descriptions. (!1167)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1167

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 15:29:41 +00:00
Hazelnoot
e78c4d99f6 fix database type of chat_message.text 2025-07-26 20:10:54 -04:00
piuvas
c97fafa071
requested changes. 2025-07-16 12:43:35 -03:00
piuvas
1696e31797
initial split descriptions impl. 2025-07-15 18:37:29 -03:00
bunnybeam
45bf8262aa
implement optional confetti on announcements 2025-07-07 20:03:28 +01:00
Lilly Schramm
0f6c5d27ec fix: Do Not NULL Descriptions 2025-06-30 08:47:44 +02:00
dakkar
13d045d813 merge: misskey 2025.5.0 (!1028)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1028

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-06-29 09:54:12 +00:00
Marie
fad58ddc1c merge: unique constraint for registry_item - fixes #1121 (!1139)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1139

Closes #1121

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-06-28 22:49:51 +00:00
Marie
f4fe14f5b7 merge: feat: Add Bio Length Setting (!1136)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1136

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-28 22:47:41 +00:00
Hazelnoot
7200c3d6c8 implement note mutings and move favorited/renoted status into note entity directly 2025-06-23 13:47:04 -04:00
dakkar
3aa5ec713c unique constraint for registry_item - fixes #1121
we remove all duplicate items from the registry, keeping the
most-recently updated one (which presumably is the one that the users
expect to be used)

then we use `upsert` instead of the more complicated previous logic,
which was subject to races
2025-06-22 13:10:22 +01:00
Lilly Schramm
4d077732ac refactor: Remove Migration Name 2025-06-22 01:39:53 +02:00
Lilly Schramm
2329618418 refactor: Remove Migration Name 2025-06-22 01:39:47 +02:00
Lilly Schramm
2ac5f2f412 refactor: Remove Migration Name 2025-06-22 01:31:55 +02:00
Lilly Schramm
df77f339ec feat(backend): Add Config Option For Bio Length 2025-06-22 01:02:20 +02:00
dakkar
3ebf9c4a71 Merge branch 'develop' into upstream/2025.5.0 2025-06-10 14:02:32 +01:00
Hazelnoot
d0cf1cc15f remove IDX_instance_host_filters as it slowed down queries more than it helped 2025-06-06 23:35:25 -04:00
Hazelnoot
5f51f7878e create IDX_note_url over note.url 2025-06-06 13:03:25 -04:00
Hazelnoot
9dc74f6f33 add threadId to IDX_note_for_timelines 2025-06-05 00:30:27 -04:00
Hazelnoot
dae544b353 merge: Rework queries and add indexes to improve timeline performance (!1091)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1091

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-04 12:40:13 +00:00
Hazelnoot
fb61668866 create note/instance statistics 2025-06-03 19:15:19 -04:00
Hazelnoot
d34c4df031 create IDX_instance_host_filters 2025-06-03 19:08:20 -04:00
Hazelnoot
99e3d45062 create IDX_note_for_timelines 2025-06-03 19:05:24 -04:00
Hazelnoot
8802fbb34d fix query plans with IDX_instance_host_key 2025-06-03 18:47:02 -04:00
Hazelnoot
9d45041bd8 replace index on note.userHost 2025-06-03 18:43:42 -04:00
piuvas
1120ad19ae
merge develop and fix conflicts. 2025-06-03 10:56:10 -03:00
Hazelnoot
e1504cfb88 merge: Persisted instance blocks (!1068)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1068

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 17:25:52 +00:00