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