summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints
diff options
context:
space:
mode:
authornullobsi <me@nullob.si>2022-02-05 23:02:48 -0800
committerGitHub <noreply@github.com>2022-02-06 16:02:48 +0900
commit3ff89fa7ecb643abf944ce966ffbf7f49000ca3f (patch)
treed0cc19173831e4f09e085c8bd805eb70c0e2ce1e /packages/backend/src/server/api/endpoints
parentFix cast (#8257) (diff)
downloadsharkey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.tar.gz
sharkey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.tar.bz2
sharkey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.zip
feat: Option to show replies in timeline (rebase #7685) (#8202)
* Add an option for timeline replies. Credit to Emilis (puffaboo) * update db on request
Diffstat (limited to 'packages/backend/src/server/api/endpoints')
-rw-r--r--packages/backend/src/server/api/endpoints/i/update.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts
index 6b7e53aa1f..eb57aa2bfc 100644
--- a/packages/backend/src/server/api/endpoints/i/update.ts
+++ b/packages/backend/src/server/api/endpoints/i/update.ts
@@ -96,6 +96,10 @@ export const meta = {
validator: $.optional.bool,
},
+ showTimelineReplies: {
+ validator: $.optional.bool,
+ },
+
injectFeaturedNote: {
validator: $.optional.bool,
},
@@ -197,6 +201,7 @@ export default define(meta, async (ps, _user, token) => {
if (typeof ps.hideOnlineStatus === 'boolean') updates.hideOnlineStatus = ps.hideOnlineStatus;
if (typeof ps.publicReactions === 'boolean') profileUpdates.publicReactions = ps.publicReactions;
if (typeof ps.isBot === 'boolean') updates.isBot = ps.isBot;
+ if (typeof ps.showTimelineReplies === 'boolean') updates.showTimelineReplies = ps.showTimelineReplies;
if (typeof ps.carefulBot === 'boolean') profileUpdates.carefulBot = ps.carefulBot;
if (typeof ps.autoAcceptFollowed === 'boolean') profileUpdates.autoAcceptFollowed = ps.autoAcceptFollowed;
if (typeof ps.noCrawle === 'boolean') profileUpdates.noCrawle = ps.noCrawle;