Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import useFeatureFlag from '../../../../hooks/use-feature-flag';
import {SettingGroup, SettingGroupContent, Toggle} from '@tryghost/admin-x-design-system';
import {type User, hasAdminAccess} from '@tryghost/admin-x-framework/api/users';
import {checkStripeEnabled} from '@tryghost/admin-x-framework/api/settings';
import {useGlobalData} from '../../../providers/global-data-provider';

const EmailNotificationsInputs: React.FC<{ user: User; setUserData: (user: User) => void; }> = ({user, setUserData}) => {
const {config, settings} = useGlobalData();
const hasWebmentions = useFeatureFlag('webmentions');
const hasStripeEnabled = checkStripeEnabled(settings || [], config || {});

return (
Expand All @@ -21,15 +19,6 @@ const EmailNotificationsInputs: React.FC<{ user: User; setUserData: (user: User)
}}
/>
{hasAdminAccess(user) && <>
{hasWebmentions && <Toggle
checked={user.mention_notifications}
direction='rtl'
hint='Every time another site links to your work'
label='Mentions'
onChange={(e) => {
setUserData?.({...user, mention_notifications: e.target.checked});
}}
/>}
<Toggle
checked={user.recommendation_notifications}
direction='rtl'
Expand Down
8 changes: 0 additions & 8 deletions ghost/admin/app/adapters/mention.js

This file was deleted.

11 changes: 0 additions & 11 deletions ghost/admin/app/controllers/mentions.js

This file was deleted.

16 changes: 0 additions & 16 deletions ghost/admin/app/models/mention.js

This file was deleted.

3 changes: 0 additions & 3 deletions ghost/admin/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Router.map(function () {
});

this.route('posts');
this.route('posts.mentions', {path: '/posts/analytics/:post_id/mentions'});
this.route('posts.debug', {path: '/posts/analytics/:post_id/debug'});
this.route('posts-x', {path: '/posts/analytics/:post_id'}, function () {
this.route('posts-x', {path: '/*sub'});
Expand Down Expand Up @@ -90,8 +89,6 @@ Router.map(function () {
this.route('error404', {path: '/*path'});

this.route('designsandbox');

this.route('mentions');
});

export default Router;
57 changes: 0 additions & 57 deletions ghost/admin/app/routes/mentions.js

This file was deleted.

6 changes: 0 additions & 6 deletions ghost/admin/app/routes/posts/mentions.js

This file was deleted.

1 change: 0 additions & 1 deletion ghost/admin/app/services/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default class FeatureService extends Service {

// labs flags
@feature('welcomeEmails') welcomeEmails;
@feature('webmentions') webmentions;
@feature('stripeAutomaticTax') stripeAutomaticTax;
@feature('emailCustomization') emailCustomization;
@feature('announcementBar') announcementBar;
Expand Down
20 changes: 0 additions & 20 deletions ghost/admin/app/services/mention-utils.js

This file was deleted.

120 changes: 0 additions & 120 deletions ghost/admin/app/templates/mentions.hbs

This file was deleted.

5 changes: 0 additions & 5 deletions ghost/admin/mirage/config/mentions.js

This file was deleted.

2 changes: 0 additions & 2 deletions ghost/admin/mirage/routes-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import mockIntegrations from './config/integrations';
import mockInvites from './config/invites';
import mockLabels from './config/labels';
import mockMembers from './config/members';
import mockMentions from './config/mentions';
import mockNewsletters from './config/newsletters';
import mockOffers from './config/offers';
import mockPages from './config/pages';
Expand Down Expand Up @@ -60,7 +59,6 @@ export default function () {
mockSnippets(this);
mockNewsletters(this);
mockStats(this);
mockMentions(this);

/* Notifications -------------------------------------------------------- */

Expand Down
35 changes: 0 additions & 35 deletions ghost/admin/tests/acceptance/mentions-test.js

This file was deleted.

2 changes: 0 additions & 2 deletions ghost/core/core/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ async function initServices() {
const emailService = require('./server/services/email-service');
const emailAnalytics = require('./server/services/email-analytics');
const mentionsService = require('./server/services/mentions');
const mentionsEmailReport = require('./server/services/mentions-email-report');
const tagsPublic = require('./server/services/tags-public');
const postsPublic = require('./server/services/posts-public');
const slackNotifications = require('./server/services/slack-notifications');
Expand All @@ -353,7 +352,6 @@ async function initServices() {
identityTokens.init(),
memberAttribution.init(),
mentionsService.init(),
mentionsEmailReport.init(),
staffService.init(),
members.init(),
tiers.init(),
Expand Down

This file was deleted.

11 changes: 0 additions & 11 deletions ghost/core/core/server/services/mentions-email-report/job.js

This file was deleted.

Loading
Loading