Skip to content

Commit 3ddf57c

Browse files
committed
➕ websites: add pinterest support through EmbedEZ
1 parent 595f21e commit 3ddf57c

17 files changed

Lines changed: 84 additions & 28 deletions

File tree

README.md

Lines changed: 21 additions & 17 deletions
Large diffs are not rendered by default.

config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ emoji:
2828
threads: "🧵"
2929
snapchat: "👻"
3030
facebook: "📘"
31+
pinterest: "📌"
3132
bluesky: "🦋"
3233
pixiv: "🖼️"
3334
mastodon: "🐘"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""AddPinterest Migration."""
2+
3+
from masoniteorm.migrations import Migration
4+
5+
6+
class AddPinterest(Migration):
7+
def up(self):
8+
"""
9+
Run the migrations.
10+
"""
11+
with self.schema.table("guilds") as table:
12+
table.boolean("pinterest").default(True)
13+
table.enum("pinterest_view", ["normal", "direct_media"]).default("normal").after("pinterest")
14+
table.boolean("pinterest_tr").default(False).after("pinterest_view")
15+
16+
def down(self):
17+
"""
18+
Revert the migrations.
19+
"""
20+
with self.schema.table("guilds") as table:
21+
table.drop_column("pinterest")
22+
table.drop_column("pinterest_view")
23+
table.drop_column("pinterest_tr")

database/models/Guild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class Guild(DiscordRepresentation):
7777
'imgur_view': EmbedEzView,
7878
'weibo_view': EmbedEzView,
7979
'imageboards_view': EmbedEzView,
80+
'pinterest_view': EmbedEzView,
8081
}
8182

8283
@has_many('id', 'guild_id')

locales/en-US.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ misc:
287287
## Features & Highlights
288288
289289
- Supports Twitter, Nitter, Instagram, TikTok, Reddit, Threads, Bluesky, Snapchat, Facebook,
290-
Pixiv, Twitch, Spotify, DeviantArt, Mastodon, Tumblr, BiliBili, IFunny, YouTube, Imgur, Weibo,
290+
Pixiv, Twitch, Spotify, DeviantArt, Mastodon, Tumblr, BiliBili, Pinterest, IFunny, YouTube, Imgur, Weibo,
291291
Fur Affinity, Rule34.xxx, Danbooru, Gelbooru, e621, e926, Realbooru, Hypnohub, Konachan, Yande.re,
292292
Derpibooru, Rule34.paheal, XBooru, TBIB, and any custom websites of your choice
293293
and any custom websites of your choice

locales/es-ES.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ misc:
281281
## Características y puntos fuertes
282282
283283
- Admite Twitter, Nitter, Instagram, TikTok, Reddit, Threads, Bluesky, Snapchat, Facebook, Pixiv, Twitch, Spotify,
284-
DeviantArt, Mastodon, Tumblr, BiliBili, IFunny, Fur Affinity, YouTube, Imgur, Weibo, Rule34.xxx,
284+
DeviantArt, Mastodon, Tumblr, BiliBili, Pinterest, IFunny, Fur Affinity, YouTube, Imgur, Weibo, Rule34.xxx,
285285
Danbooru, Gelbooru, e621, e926, Realbooru, Hypnohub, Konachan, Yande.re,
286286
Derpibooru, Rule34.paheal, XBooru, TBIB,
287287
y cualquier otra web de tu elección

locales/fr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ misc:
283283
## Caractéristiques et points forts
284284
285285
- Prend en charge Twitter, Nitter, Instagram, TikTok, Reddit, Threads, Bluesky, Snapchat, Facebook, Pixiv, Twitch,
286-
Spotify, DeviantArt, Mastodon, Tumblr, BiliBili, IFunny, Fur Affinity, YouTube, Imgur, Weibo,
286+
Spotify, DeviantArt, Mastodon, Tumblr, BiliBili, Pinterest, IFunny, Fur Affinity, YouTube, Imgur, Weibo,
287287
Rule34.xxx, Danbooru, Gelbooru, e621, e926, Realbooru, Hypnohub, Konachan, Yande.re,
288288
Derpibooru, Rule34.paheal, XBooru, TBIB,
289289
et n'importe quel site personnalisé de votre choix

locales/id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ misc:
137137
## Fitur & Sorotan
138138
139139
- Supports Twitter, Nitter, Instagram, TikTok, Reddit, Threads, Bluesky, Snapchat, Facebook,
140-
Pixiv, Twitch, Spotify, DeviantArt, Mastodon, Tumblr, BiliBili, IFunny, YouTube, Imgur, Weibo,
140+
Pixiv, Twitch, Spotify, DeviantArt, Mastodon, Tumblr, BiliBili, Pinterest, IFunny, YouTube, Imgur, Weibo,
141141
Fur Affinity, Rule34.xxx, Danbooru, Gelbooru, e621, e926, Realbooru, Hypnohub, Konachan, Yande.re,
142142
Derpibooru, Rule34.paheal, XBooru, TBIB, dan situs web khusus pilihan Anda
143143
dan situs web khusus pilihan Anda

locales/ja.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ misc:
192192
## 特徴&ハイライト
193193
194194
- Twitter、Nitter、Instagram、TikTok、Reddit、Threads、Bluesky、Snapchat、Facebook、Pixiv、Twitch、
195-
Spotify、DeviantArt、Mastodon、Tumblr、BiliBili、IFunny、Fur Affinity、YouTube、Imgur、Weibo、
195+
Spotify、DeviantArt、Mastodon、Tumblr、BiliBili、Pinterest、IFunny、Fur Affinity、YouTube、Imgur、Weibo、
196196
Rule34.xxx、Danbooru、Gelbooru、e621、e926、Realbooru、Hypnohub、Konachan、Yande.re、
197197
Derpibooru、Rule34.paheal、XBooru、TBIB、およびお好みのカスタムウェブサイトに対応しています。
198198
- ツイート翻訳

locales/pl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ misc:
283283
## Funkcje i najważniejsze cechy
284284
285285
- Obsługuje Twitter, Nitter, Instagram, TikTok, Reddit, Threads, Bluesky, Snapchat, Facebook, Pixiv, Twitch, Spotify,
286-
DeviantArt, Mastodon, Tumblr, BiliBili, IFunny, Fur Affinity, YouTube, Imgur, Weibo,
286+
DeviantArt, Mastodon, Tumblr, BiliBili, Pinterest, IFunny, Fur Affinity, YouTube, Imgur, Weibo,
287287
Rule34.xxx, Danbooru, Gelbooru, e621, e926, Realbooru, Hypnohub, Konachan, Yande.re,
288288
Derpibooru, Rule34.paheal, XBooru, TBIB,
289289
oraz dowolne niestandardowe strony internetowe

0 commit comments

Comments
 (0)