mirror of
https://github.com/Athou/commafeed.git
synced 2026-09-23 04:25:07 +00:00
the Pocket service has been discontinued
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { IconType } from "react-icons"
|
||||
import { FaAt } from "react-icons/fa"
|
||||
import { SiBuffer, SiFacebook, SiGmail, SiInstapaper, SiPocket, SiTumblr, SiX } from "react-icons/si"
|
||||
import { SiBuffer, SiFacebook, SiGmail, SiInstapaper, SiTumblr, SiX } from "react-icons/si"
|
||||
import type { Category, Entry, SharingSettings } from "./types"
|
||||
|
||||
const categories: Record<string, Omit<Category, "name">> = {
|
||||
@@ -58,12 +58,6 @@ const sharing: {
|
||||
color: "#375672",
|
||||
url: (url, desc) => `https://www.tumblr.com/share/link?url=${url}&name=${desc}`,
|
||||
},
|
||||
pocket: {
|
||||
label: "Pocket",
|
||||
icon: SiPocket,
|
||||
color: "#EF4154",
|
||||
url: (url, desc) => `https://getpocket.com/save?url=${url}&title=${desc}`,
|
||||
},
|
||||
instapaper: {
|
||||
label: "Instapaper",
|
||||
icon: SiInstapaper,
|
||||
|
||||
@@ -249,7 +249,6 @@ export interface SharingSettings {
|
||||
facebook: boolean
|
||||
twitter: boolean
|
||||
tumblr: boolean
|
||||
pocket: boolean
|
||||
instapaper: boolean
|
||||
buffer: boolean
|
||||
}
|
||||
|
||||
@@ -152,7 +152,6 @@ public class UserSettings extends AbstractModel {
|
||||
private boolean facebook;
|
||||
private boolean twitter;
|
||||
private boolean tumblr;
|
||||
private boolean pocket;
|
||||
private boolean instapaper;
|
||||
private boolean buffer;
|
||||
|
||||
|
||||
@@ -122,9 +122,6 @@ public class Settings implements Serializable {
|
||||
@Schema(required = true)
|
||||
private boolean tumblr;
|
||||
|
||||
@Schema(required = true)
|
||||
private boolean pocket;
|
||||
|
||||
@Schema(required = true)
|
||||
private boolean instapaper;
|
||||
|
||||
|
||||
@@ -112,7 +112,6 @@ public class UserREST {
|
||||
s.getSharingSettings().setFacebook(settings.isFacebook());
|
||||
s.getSharingSettings().setTwitter(settings.isTwitter());
|
||||
s.getSharingSettings().setTumblr(settings.isTumblr());
|
||||
s.getSharingSettings().setPocket(settings.isPocket());
|
||||
s.getSharingSettings().setInstapaper(settings.isInstapaper());
|
||||
s.getSharingSettings().setBuffer(settings.isBuffer());
|
||||
|
||||
@@ -151,7 +150,6 @@ public class UserREST {
|
||||
s.getSharingSettings().setFacebook(true);
|
||||
s.getSharingSettings().setTwitter(true);
|
||||
s.getSharingSettings().setTumblr(true);
|
||||
s.getSharingSettings().setPocket(true);
|
||||
s.getSharingSettings().setInstapaper(true);
|
||||
s.getSharingSettings().setBuffer(true);
|
||||
|
||||
@@ -219,7 +217,6 @@ public class UserREST {
|
||||
s.setFacebook(settings.getSharingSettings().isFacebook());
|
||||
s.setTwitter(settings.getSharingSettings().isTwitter());
|
||||
s.setTumblr(settings.getSharingSettings().isTumblr());
|
||||
s.setPocket(settings.getSharingSettings().isPocket());
|
||||
s.setInstapaper(settings.getSharingSettings().isInstapaper());
|
||||
s.setBuffer(settings.getSharingSettings().isBuffer());
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="remove-pocket-sharing" author="athou">
|
||||
<dropColumn tableName="USERSETTINGS" columnName="pocket" />
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
||||
Reference in New Issue
Block a user